Skip to content

Commit

Permalink
Use deploy:finalize_update instead deploy:restart
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrovv committed May 16, 2012
1 parent 0252679 commit 7ae1009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whenever/capistrano.rb
Expand Up @@ -5,7 +5,7 @@
# Disable cron jobs at the begining of a deploy.
after "deploy:update_code", "whenever:clear_crontab"
# Write the new cron jobs near the end.
before "deploy:restart", "whenever:update_crontab"
before "deploy:finalize_update", "whenever:update_crontab"
# If anything goes wrong, undo.
after "deploy:rollback", "whenever:update_crontab"

Expand Down

0 comments on commit 7ae1009

Please sign in to comment.