Created
September 4, 2015 14:08
-
-
Save yock/531a6ac5d527b4e5ce5e to your computer and use it in GitHub Desktop.
This file contains 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
# deploy.rb | |
server '0.0.0.0', roles: %w{ retire } # Old app server is given a role of 'retire' | |
server '0.0.0.1', roles: %w{ app db } # New app server gets the existing roles | |
set :whenever_roles, %w{ retire app } |
This file contains 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
# schedule.rb | |
every 1.hour, roles: [:app] do | |
# Do some work in here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment