Search code examples
ruby-on-railsgitcapistranodreamhosttesting-strategies

Using Capistrano to deploy rails app in remote DreamHost testing/sandbox server


Currently I use capistrano to deploy my app to a remote production server in Dreamhost (see this guide).

I would like to setup an alternate sub-domain (testing.example.com) in my DH setup as a sandbox enviroment for beta testing. I'm currently running Rails 2.3.10.

The Capistrano task must force RAILS_ENV to "testing". Is this possible?


Solution

  • You can do this with Capistrano's Multistage extension