# Customize the rake job to source user profile for environment variables
job_type :rake, ". $HOME/.profile; cd :path && :environment_variable=:environment bundle exec rake :task --silent :output"

set :bundle_command, "/home/deploy/.rbenv/versions/2.3.1/bin/bundle exec"
set :output, { error: '/var/www/shared/cron.front.error.log', standard: '/var/www/shared/cron.front.log' }
every 1.day, :at => '1:30 am' do
  rake "iom:update_sites"
  rake "iom:update_tag_project_counts"
  rake "iom:mailchimp:sync"
end

set :bundle_command, "/home/deploy/.rbenv/versions/2.3.1/bin/bundle exec"
set :output, { error: '/var/www/shared/cron.front.error.log', standard: '/var/www/shared/cron.front.log' }
every 1.day, :at => '1:30 am' do
  rake "iom:update_sites"
  rake "iom:update_tag_project_counts"
  rake "iom:mailchimp:sync"
end

Revert "customize rake job definition in whenever"
Revert "customize rake job definition in whenever"

This reverts commit acae3a3b10b52f3734800d2fb239312363d7c6ba.
