Show HN: How to Setup Node.js App Automated Deployment and CI with PM2 for MVP's
niftylettuce.com
niftylettuce.com
Though I don't use pm2 for deployments. I create new servers (immutable infrastructure) on AWS every deploy, and use NGINX Plus dynamic upstream to add the new backends and remove the old ones. There is something pleasing about creating new servers and destroying old servers every deploy.
Also check out Drone (https://github.com/drone/drone) for all your CI and deployment needs. It uses Docker and written in go.
So every deploy incurs that usage rounding. Depending on the frequency of deploys and the number of servers being deployed to, that adds up.
If you have a more polygot stack, or rely on other non-node systems like RabbitMQ or whatever, standardizing on Docker containers is a no brainer though.
I'd used Jenkins before (that someone else had set up) and was familiar with much of the other parts (DigitalOcean, Node.js, PM2, etc.), but had never properly learned how to set up CI for myself. This article was a great introduction.
Now studying your Rapid MVP Standards document (https://github.com/niftylettuce/rapid-mvp-standards). I appreciate you sharing your experience and knowledge!