I have 2 versions of the same website located on different IPs -- one is production, and one is staging.
The production server: is managed completely by Site5. DNS is done so that foo.com
resolves to Site5's servers and they take care of the rest.
The staging server: is an EC2 instance and Apache is set up with a name-based virtual host, foo.com
.
As a developer, when I need to work on the staging version, I change my hosts
file so that:
foo.com 1.2.3.4 # the elastic IP associated with my EC2 instance
so when I am in my browser and I visit foo.com
, I see the staging version. I comment out the line when I want to see the production version.
This is all fine for me, but others on the team are not as tech savvy and are scared of the Terminal.
Is there a better way of doing this, preferably a method that doesn't require diving into the Terminal or other "scary stuff"?
Perhaps a proxy server they can choose to use/not use when they want to see/not see the staging version?