Setting up a Test VPS with Git

October 5, 2013 2.1k views
I need advises on how to best setup a test environment for testing of mainly HTML5, Node.js apps which will be updated by diverse developers via Git and then tested by users around the World. When a revision is fully tested on all devices and code reviewed the release code shall be easily deployed with one command to the public live server, which might be a separate VPS/droplet at DigitalOcean. The current public live server now runs Ubuntu 12.04 64bit LEMP. We want to keep the two environments securely separate. In the event of an attack on the live server we want to be able to temporarily switch IPs of domain to point to the "test"-environment instead.
1 Answer
Check out: How To Set Up Automatic Deployment with Git with a VPS.

Also, you should make sure that your droplets are either in different datacenters or that you employ load balancers, e.g.

1.) How To Use HAProxy to Set Up HTTP Load Balancing on an Ubuntu VPS; or

2.) How To Set Up Nginx Load Balancing
by Etel Sverdlov
This article covers how to set up a simple load balancer on a DigitalOcean droplet with nginx. The tutorial covers setting up a round robin loadbalancer that can then direct site visitors to one of a set of IPs
Have another answer? Share your knowledge.