8 points · by fabianlindfors · 10y ago · 7 comments
In my off-time I've been trying other kinds of web development, Ruby on Rails and the like. Development environments are easy to set up but staging has proven more difficult. Using my own VPS is affordable but takes quite a bit of work even for something simple, and using a PaaS such as Heroku quickly becomes way to expensive for a side project.
Any suggestions on how to handle staging? What does your staging workflow look like?
Is there a simpler, more automated way to handle the networking when publishing a new containerized app?
Even if you're not using Laravel(PHP) it works for quickly spinning up a vps on digital ocean or AWS.
You can setup multiple dev/test sites on one droplet.
Deploy repo via github bitbucket.
It's super fast and easy.
We setup live site on it's own droplet then have another staging droplet. Develop locally with valet/homestead (laravel.com), deploy to staging using forge, deploy to production using forge.
Forge has quick deploy which deploys when you push to your repo.
There is also https://envoyer.io/ for zero downtime deployment.
I've also recently began looking into docker, but the update image dance seems like more work to me than the above.