Setting up a Test VPS with Git

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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Check out: <a href=“”>How To Set Up Automatic Deployment with Git with a VPS</a>. <br> <br>Also, you should make sure that your droplets are either in different datacenters or that you employ load balancers, e.g. <br> <br>1.) <a href=“”>How To Use HAProxy to Set Up HTTP Load Balancing on an Ubuntu VPS</a>; or <br> <br>2.) <a href=“”>How To Set Up Nginx Load Balancing</a>