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

thaichor picture thaichor  ·  8Comments

jakoss picture jakoss  ·  3Comments

peterprabu picture peterprabu  ·  4Comments

Ilya-Kuchaev picture Ilya-Kuchaev  ·  4Comments

Epigene picture Epigene  ·  4Comments