Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 使用 pm2 來管理 node application
- ## 安裝 pm2
- npm install -g pm2
- ## YARN 版本
- yarn run build
- pm2 start yarn --interpreter bash --name SPA -- start
- ### 更新 & 部署
- yarn run build
- pm2 restart SPA
- ## NPM 版本
- npm run build
- pm2 start npm --name SPA -- start
- ### 更新 & 部署
- npm run build
- pm2 restart SPA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement