infra::profile::cron::cronjobs:
vaillant_cache_update:
user: apache
- environment: "PATH=/usr/local/rvm/gems/ruby-2.2.9/bin:/usr/local/rvm/gems/ruby-2.2.9@global/bin:/usr/local/rvm/rubies/ruby-2.2.9/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
+ environment:
+ - "PATH=/usr/local/rvm/gems/ruby-2.2.9/bin:/usr/local/rvm/gems/ruby-2.2.9@global/bin:/usr/local/rvm/rubies/ruby-2.2.9/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
+ - "RAILS_ENV=production"
command: 'cd /var/www/vaillant && /usr/local/rvm/wrappers/ruby-2.2.9/bundle exec rake smile:update_image_cache --silent >> /var/www/vaillant/log/cron.log' # 30 days
minute: '0,20,40'
description: Update image cache