Created
December 26, 2011 10:15
-
-
Save PhilippePerret/1520856 to your computer and use it in GitHub Desktop.
Déploiement avec Capistrano
This file contains 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
# Si on utilise whenever pour des cron jobs | |
# Pour actualiser le crontab à chaque déploiemnet | |
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 #{application}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment