Created
September 16, 2013 09:54
-
-
Save bibstha/6578707 to your computer and use it in GitHub Desktop.
Integrate whenever with capistrano. Add the following lines to automatically update crontab after cap deploy
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
set :whenever_command, "bundle exec whenever" | |
set :whenever_identifier, defer { "#{:myappname}_#{:production}" } | |
require "whenever/capistrano" | |
after "deploy:restart", "whenever:update_crontab" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment