Created
October 9, 2019 19:17
-
-
Save ufna/6a81caabf36b1ae467c6b566ac013073 to your computer and use it in GitHub Desktop.
Restart nodejs app with Jenkins and pm2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd Extras/WebhookDemo | |
# replace secret key | |
jq -c '.store.secretKey = "'$MYSECRET'"' config.json > tmp.$$.json && mv tmp.$$.json config.json | |
cat config.json | |
# run node now | |
npm install | |
#pm2 delete all | |
#BUILD_ID=dontKillMe pm2 restart bin/www -f | |
BUILD_ID=dontKillMe pm2 startOrReload ecosystem.config.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment