Reputation: 3814
I know this may seem trivial to some, other won't see the point, however - for me this would be great:
I am trying to work out how to quickly and efficiently commit updates to my Rails app, switch to an under construction style page while I restart the rails app and then test the changes, then when I am happy, switch back to the live public version.
At the moment, I follow the following pattern:
If it helps, I am using Passenger on a Turnkey Rails image VPS.
Thanks in advance for any advice, etc.
Thanks,
Danny
Upvotes: 3
Views: 1028
Reputation: 1757
You have a few options:
You'll need to be able to add a subdomain to your DNS record to point to the same IP address as your main production server. You'll then also need to add a new VirtualHost with ServerName subdomain.host.com
and DocumentRoot /data/host.com/testing/public
so that it loads that code.
RailsBaseURI
directives to enable separate sites in subdirectories. This means you deploy your code to another directory and create the simlink.I have personally done BOTH approaches. I prefer approach #1 but it's personal preference and the level of access you have to your hosts.
Upvotes: 4