Skip to content

Commit baf9275

Browse files
committed
Change PM2 order
1 parent cd73940 commit baf9275

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

scripts/start-node.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ export NODE_ENV=production
55
set -x
66

77
cd /home/node/admin
8-
pm2 update
98
env PATH=$PATH:/usr/local/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u node --hp /home/node
109
pm2 delete all
1110
pm2 start index.js --merge-logs --log ../logs/app.log
12-
pm2 save
11+
12+
pm2 save
13+
14+
# Install latest pm2
15+
npm install pm2@latest -g
16+
17+
pm2 update

scripts/update-node.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@ set -x
55
npm install -g n
66
n 12
77
npm install -g npm@6
8-
9-
# Install latest pm2
10-
npm install -g pm2

0 commit comments

Comments
 (0)