Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created October 11, 2010 18:57
Show Gist options
  • Save jamiew/621029 to your computer and use it in GitHub Desktop.
Save jamiew/621029 to your computer and use it in GitHub Desktop.
# *replaces* the deploy user's crontab with config/crontab.txt
# only does this on the *primary* :app server
role :app, "website.com", :primary => true
after "deploy:symlink", "deploy:crontab"
namespace :deploy do
desc "Install crontab"
task :crontab, :roles => :app, :only=>{:primary => true} do
run "crontab #{current_path}/config/crontab.txt"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment