Skip to content

Instantly share code, notes, and snippets.

@bibstha
Created September 16, 2013 09:54
Show Gist options
  • Save bibstha/6578707 to your computer and use it in GitHub Desktop.
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
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