Report abuse

deploy.rb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace :deploy do
  desc "Update the crontab file"
  task :update_crontab, :roles => :db do
    run "cd #{release_path} && whenever --update-crontab #{application}"
  end
end

# also fails

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