Using Capistrano to deploy rails app in remote DreamHost testing/sandbox server
-
24-10-2019 - |
سؤال
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?
المحلول
You can do this with Capistrano's Multistage extension
لا تنتمي إلى StackOverflow