Start app with PM2
Start a Node app under PM2 with a friendly name. Save state so it restarts on reboot.
Starts a Node.js application under PM2 with a named process entry. The name flag makes it easier to identify and manage the process with pm2 restart/stop/logs.
When you need this: When deploying a Node.js app to production for the first time.
Variables
A short identifier shown in pm2 list. No spaces.
Command
3 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.