Commit d21296a7296c9ed25d5fa09c8c1bc9fba83bb3ef

Authored by ly525
1 parent 341b0d7e

chore: replace local pm2 with global pm2

Showing 1 changed file with 5 additions and 5 deletions
luban-h5.sh
... ... @@ -3,8 +3,8 @@
3 3 ###
4 4 # @Author: ly525
5 5 # @Date: 2020-01-10 22:23:34
6   - # @LastEditors : ly525
7   - # @LastEditTime : 2020-01-24 22:02:16
  6 + # @LastEditors: ly525
  7 + # @LastEditTime: 2020-05-04 11:15:43
8 8 # @FilePath: /luban-h5/luban-h5.sh
9 9 # @Github: https://github.com/ly525/luban-h5
10 10 # @Description: Do not edit
... ... @@ -101,12 +101,12 @@ luban_h5_init() {
101 101 }
102 102  
103 103 luban_h5_start() {
104   - cd back-end/h5-api && npx pm2 start --name luban-h5-service server.js
  104 + cd back-end/h5-api && pm2 start --name luban-h5-service server.js
105 105 cd ${cur_dir}
106 106 }
107 107  
108 108 luban_h5_restart() {
109   - cd back-end/h5-api && npx pm2 restart luban-h5-service
  109 + cd back-end/h5-api && pm2 restart luban-h5-service
110 110 cd ${cur_dir}
111 111 }
112 112  
... ... @@ -126,7 +126,7 @@ luban_h5_rebuild_editor() {
126 126 }
127 127  
128 128 luban_h5_stop() {
129   - cd back-end/h5-api && npx pm2 stop luban-h5-service
  129 + cd back-end/h5-api && pm2 stop luban-h5-service
130 130 cd ${cur_dir}
131 131 }
132 132  
... ...