Skip to content

Instantly share code, notes, and snippets.

@PhilippePerret
Created December 26, 2011 10:15
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 PhilippePerret/1520856 to your computer and use it in GitHub Desktop.
Save PhilippePerret/1520856 to your computer and use it in GitHub Desktop.
Déploiement avec Capistrano
# 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