Skip to content

Instantly share code, notes, and snippets.

@yock yock/deploy.rb
Created Sep 4, 2015

Embed
What would you like to do?
# 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 }
# 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
You can’t perform that action at this time.