ruby on rails - Whenever gem won't update crontab tasks -


i have been using whenever gem on 2+ year old slice @ slicehost. can't same on new slice.

main differences i'm running rvm on both mbp , slice. running rails 3. i've got rubygems v 1.5.0 , latest versions of rvm , ruby 1.9.2p136, capistrano , every other package out there.

i have tried million things, read docs , of i'm using whenever gem version 0.6.2. have looked @ questions on related topics on google.

here code in deploy.rb:

namespace :deploy   ...   desc "update crontab file"   task :update_crontab, :roles => :db     run "cd #{release_path} && whenever --update-crontab #{application}"   end    end  after 'deploy:update_code', 'deploy:update_crontab' 

here error message after running 'cap deploy'

failed: "rvm_path=$home/.rvm/ $home/.rvm/bin/rvm-shell '1.9.2' -c 'cd /home/deploy/public_html/lasource/releases/20110209201551 && /home/deploy/.rvm/gems/ruby-1.9.2-p136/bin/whenever --write-crontab'" on lasource.ohlalaweb.com 

any suggestions welcome.

by way, capistrano logs?

having added 'bundle exec' simone's suggestion, managed complete cap deploy routine went well. new problem crontab file still empty of tasks , did not create section 4 tasks.

if using rails 3, remember execute command bundle exec.

namespace :deploy   desc "update crontab file"   task :update_crontab, :roles => :app, :except => { :no_release => true }     run "cd #{release_path} && bundle exec whenever --update-crontab #{application}"   end end 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -