Skip to content

Commit

Permalink
Update PM2 on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hijohnnylin committed May 14, 2019
1 parent 0c9d107 commit 902ef03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/start-node.sh
Expand Up @@ -3,7 +3,9 @@
export NODE_ENV=production

cd /home/node/main
pm2 updatePM2 # pick up new node version if we upgraded
# Update PM2
pm2 updatePM2
env PATH=$PATH:/usr/local/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u node --hp /home/node
pm2 delete all
pm2 start index.js -i max --merge-logs --log ../logs/app.log --node-args="--icu-data-dir=node_modules/full-icu"
pm2 save

0 comments on commit 902ef03

Please sign in to comment.