newbie

81 views
Skip to first unread message

tom

unread,
Jun 19, 2012, 5:55:15 PM6/19/12
to whenev...@googlegroups.com
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




Reply all
Reply to author
Forward
0 new messages