namespace :deploy do
desc "Update the crontab file"
task :update_crontab, :roles => :db do
run "cd #{release_path} && whenever --update-crontab #{application}"
end
end
namespace :deploy do
desc "Update the crontab file"
task :update_crontab, :roles => :db do
run "cd #{release_path} && ./vendor/gems/javan-whenever-0.3.7/bin/whenever --update-crontab #{application}"
end
end
[floyd]$ find . -name "whenever"
./grantvote.com/releases/20091004132928/vendor/gems/javan-whenever-0.3.7/bin/whenever
./grantvote.com/releases/20091004111421/vendor/gems/javan-whenever-0.3.7/bin/whenever
./grantvote.com/releases/20091004120249/vendor/gems/javan-whenever-0.3.7/bin/whenever
./grantvote.com/shared/cached-copy/vendor/gems/javan-whenever-0.3.7/bin/whenever