Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Install PM2 globally
- npm install -g pm2
- # Switch to the directory containing our Express app
- cd arduino-request-router
- # Run our app via the PM2 config file ecosystem.config.js
- pm2 start ecosystem.config.js --env production
- # Generate the command to start pm2 automatically
- pm2 startup
- # Copy the last line of output from the command above
- # Run the command that you copied in the previous step
- # Save the currently running process so it will be run on startup
- pm2 save
Add Comment
Please, Sign In to add comment