Skip to content

Instantly share code, notes, and snippets.

@chollier
Created September 21, 2010 09:38
Show Gist options
  • Save chollier/589463 to your computer and use it in GitHub Desktop.
Save chollier/589463 to your computer and use it in GitHub Desktop.
after "deploy:symlink", "deploy:update_crontab"
namespace :deploy do
desc "Update the crontab file"
task :update_crontab, :roles => :db do
run "cd #{release_path} && whenever --update-crontab #{:app}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment