By asterixzzz
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.
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!
Check out: <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-automatic-deployment-with-git-with-a-vps”>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=“https://www.digitalocean.com/community/articles/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps”>How To Use HAProxy to Set Up HTTP Load Balancing on an Ubuntu VPS</a>; or <br> <br>2.) <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-nginx-load-balancing”>How To Set Up Nginx Load Balancing</a>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.