I have a Rails app and I would like to use Capistrano to deploy two versions: production
and staging
.
On my deploy.rb file I have:
set :stages, ['staging', 'production']
Then how can I use two paths without overriding them?
set :deploy_to, '/home/deploy/Sites/staging/myname'
set :deploy_to, '/home/deploy/Sites/production/myname'
I've seen this answer but I'd like to keep the command line clean.