Using PM2 to deploy simple web applications on cloud servers

Using PM2 to deploy simple web applications on cloud servers
Main Image source: https://pm2.keymetrics.io with

We have been experimenting with smaller, custom web applications for research projects. For this year's deployment of TunePad at Evanston-Skokie District 65, we have a newer technical stack based on Node (of course with a mix of client-side TypeScript, a PostgreSQL datastore ...etc.).

Our web applications tend to be deployed on Northwestern University's cloud servers / Ubuntu VMs. After looking into various options for deployment, we chose to use pm2 (a daemon process manager) given its relative simplicity and ease-of-use (of course, pm2 runs with nginx as our reverse-proxy and load balancer) .


There are a couple of things to watch out for while using pm2 for anyone with a technical stack similar to ours and this is mostly a post to document those "gotchas".

... to be continued