Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
# deploy.rb
server '', roles: %w{ retire } # Old app server is given a role of 'retire'
server '', 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
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.