Guest User

Untitled

a guest
Jan 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # Install PM2 globally
  2. npm install -g pm2
  3.  
  4. # Switch to the directory containing our Express app
  5. cd arduino-request-router
  6.  
  7. # Run our app via the PM2 config file ecosystem.config.js
  8. pm2 start ecosystem.config.js --env production
  9.  
  10. # Generate the command to start pm2 automatically
  11. pm2 startup
  12.  
  13. # Copy the last line of output from the command above
  14. # Run the command that you copied in the previous step
  15.  
  16. # Save the currently running process so it will be run on startup
  17. pm2 save
Add Comment
Please, Sign In to add comment