Skip to content
Browse files

clear crontab before finalize_update but after update_code as the whe…

…never gem may not be available until the bundle is installed
  • Loading branch information...
1 parent 0446b02 commit 8a9375317670aa32cb141bc9c328c965e432e0e4 @s01ipsist committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/whenever/capistrano.rb
View
2 lib/whenever/capistrano.rb
@@ -3,7 +3,7 @@
Capistrano::Configuration.instance(:must_exist).load do
# Disable cron jobs at the begining of a deploy.
- before "deploy:update_code", "whenever:clear_crontab"
+ before "deploy:finalize_update", "whenever:clear_crontab"
# Write the new cron jobs near the end.
after "deploy:finalize_update", "whenever:update_crontab"
# If anything goes wrong, undo.

0 comments on commit 8a93753

Please sign in to comment.
Something went wrong with that request. Please try again.