Mina: Support for multi-stage deployment

Created on 13 Oct 2012  路  3Comments  路  Source: mina-deploy/mina

Is it on the plans?

Most helpful comment

It's a pending pull request for the documentation website: https://github.com/nadarei/mina-docs/pull/1

How to implement multi-stage deployment:

# config/deploy.rb
case ENV['to']
when 'staging'
  set :domain, "staging.example.com"
else
  set :domain, "www.example.com"
end

Then to deploy to staging, execute mina deploy to=staging and you're set.

All 3 comments

This is built in.

I thought I had a pending pull request documenting this, but I can't find it. Going to search for it now.

It's a pending pull request for the documentation website: https://github.com/nadarei/mina-docs/pull/1

How to implement multi-stage deployment:

# config/deploy.rb
case ENV['to']
when 'staging'
  set :domain, "staging.example.com"
else
  set :domain, "www.example.com"
end

Then to deploy to staging, execute mina deploy to=staging and you're set.

Simple. Brilliant. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

folivi picture folivi  路  4Comments

thelucid picture thelucid  路  8Comments

Bilge picture Bilge  路  9Comments

Ilya-Kuchaev picture Ilya-Kuchaev  路  4Comments

ozgg picture ozgg  路  6Comments