Deploying a Node App From a Repo on Cloudways Velocity
Deploying a Node app usually comes down to two options, and neither one is great.聽
You can spin up a plain VPS, install Node by hand, wire up NGINX as a reverse proxy, configure PM2 to keep the process alive, and set up SSL yourself. Or you can push everything to a serverless platform and accept cold starts, a pricing model that gets unpredictable the moment traffic spikes, and a runtime that doesn't want to hold a persistent connection open for long.聽
Neither is a great fit for a small app that just needs to run reliably without turning into a part time ops job.
Cloudways Velocityis built around a third option, where you connect a GitHub repository directly to Velocity and let it handle the build, the process, and the deploy on every push. Velocity just reached general availability, and to show what that actually looks like in...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE