Setup a remote development environment with Vagrant, Salt and Digitalocean
For years I have been doing web development on a lenovo S10 netbook via SSH. I like to be able to connect to it from anywhere in the world and resume my work by typing: tmux -2u attach
. But it also has some issues:
- sometimes the connection is very slow in other countries because I have to SSH to my home router in Sweden.
- the laptop is getting older and the fan makes lots of noise.
- I cannot do system snapshot like a virtual machine.
- I cannot suspend/resume the system remotely like a virtual machine.
Since I have been using Vagrant and Salt for my web service, I figured I could setup a remote development environment using Salt. All of my repositories are at Github and Bitbucket anyway. As for the VPS, I chose DigitalOcean because of their API, price and speed:) Here is the github repository for my vagrant and salt files: https://github.com/zheli/dev-environment