hi
im tryin to get my multistaging and need to know if thats right what im doing:
require "whenever/capistrano"
set :whenever_environment, defer { rails_env }
set :whenever_identifier, defer { "#{application}_#{rails_env}" }
set(:whenever_command) { "RAILS_ENV=#{rails_env} bundle exec whenever" }
task :update_crontab, :roles => :app do
run "cd #{release_path} && bundle exec whenever --set RAILS_ENV=#{rails_env}; whenever --update-crontab" # #{application}"
>> is that correct!?
also,
how does my schedule need to look like?
#set :environment, #:environment # ENV['RAILS_ENV']
set :environment, ENV['RAILS_ENV']
#################################
every :day do
runner "User......
end
pls comment
thx