javan-whenever + WebFaction
I have had much trouble on a few different servers (including Webfaction) getting javan-whenever working with Capistrano and I finally started reading through Capistrano’s endless logging and discovered that the useful information (a descriptive, useful error message) was hidden away in a sea of useless noise - it turns out that sh simply was not finding the path to whenever in my personal Ruby install, so adding that path finally solved this problem….
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after "deploy:symlink", "deploy:update_crontab" | |
namespace :deploy do | |
desc "Write Crontab" | |
task :update_crontab, :roles => :app do | |
run "cd #{release_path} && /home/#{user}/ruby1.8/lib/ruby/gems/1.8/bin/whenever --write-crontab" | |
end | |
end |
I am available for Ruby on Rails consulting work – get in touch to learn more.