dannymcc
dannymcc

Reputation: 3814

Rails Under Construction Page

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

Answers (1)

Matt S
Matt S

Reputation: 1757

You have a few options:

  • Create a subdomain for 'testing' and deploy it to your production server and when it's vetted you can push it to your production code location.

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.

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

Related Questions