Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # 使用 pm2 來管理 node application
  2.  
  3. ## 安裝 pm2
  4. npm install -g pm2
  5.  
  6. ## YARN 版本
  7. yarn run build
  8. pm2 start yarn --interpreter bash --name SPA -- start
  9.  
  10. ### 更新 & 部署
  11. yarn run build
  12. pm2 restart SPA
  13.  
  14. ## NPM 版本
  15. npm run build
  16. pm2 start npm --name SPA -- start
  17.  
  18. ### 更新 & 部署
  19. npm run build
  20. pm2 restart SPA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement