How to host static site using pm2

PM2 is a process manager for node.js applications. You can use PM2 to host static websites. To host a static website, create a folder, and put your files inside. Let’s create a static file, say index.html Now you can make the site live using the following pm2 command Now the static site will be available … Read more

Auto Start pm2 on boot

To auto start pm2 on boot, run pm2 startup This will generate auto start script for your system. Once you started all applications, you can save it with pm2 save To uninstall, run pm2 unstartup systemd Running Application as Normal User First login as the user, then start the application using pm2. pm2 start app.js … Read more

pm2 process manager for node.js

Auto Start pm2 on bootHow to host static site using pm2 pm2 is a process manager for node.js applications. It is similar to forever. http://pm2.keymetrics.io First you need to install npm, on Ubuntu/Debian, run To install pm2, run Start an Application Start an Application with name Start npm Start the Application in Cluster mode with … Read more