multistage and vhost

Subscribe to multistage and vhost 1 post(s), 1 voice(s)

 
Avatar manythink 2 post(s)

I am trying to setup a staging subdomain for my rails app. The :rails_env, :domain and :domain_aliases are all set in the deploy config files. I ran the deploy:setup and deploy:web:restart recipes as described in the wiki.

But this only sets one Apache vhost, with the DocumentRoot pointing to the current production deployment. If I run “cap staging deploy:setup”, the unique vhost is overwritten and the production deploy becomes inaccessible (obviously).

What am I missing? Is there a standard deployment recipe or variable to generate a second vhost for the staging domain name?

Signup or login to contribute