Created
October 11, 2010 18:57
-
-
Save jamiew/621029 to your computer and use it in GitHub Desktop.
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
# *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