Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created February 15, 2010 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balinterdi/304492 to your computer and use it in GitHub Desktop.
Save balinterdi/304492 to your computer and use it in GitHub Desktop.
set :deploy_to, "path_to_teambox_on_production_server"
set :rails_root, deploy_to + "/current"
after "deploy:update_crontab"
namespace :deploy do
desc "Update the crontab file"
task :update_crontab, :roles => :db do
run "cd #{rails_root} && whenever --update-crontab #{application}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment