From 1ba9e9518860fb8d2d621eb7e43d49539e17d8ca Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 20 Nov 2021 02:43:37 +0200 Subject: [PATCH] add pm2 --- playground-client/install-npm.sh | 6 +----- playground-client/playground.config.js | 5 +++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/playground-client/install-npm.sh b/playground-client/install-npm.sh index c6ec3f8..132890b 100755 --- a/playground-client/install-npm.sh +++ b/playground-client/install-npm.sh @@ -9,11 +9,7 @@ cd $BASEDIR npm i npm cache clean --force -#cp $BASEDIR/VuetableCssConfig.js $BASEDIR/node_modules/vuetable-2/src/components -#cp $BASEDIR/playground.config.js /home/node cp VuetableCssConfig.js node_modules/vuetable-2/src/components -cp playground.config.js /home/node -cd $cpwd -pm2-runtime /home/node/playground.config.js +pm2-runtime playground.config.js diff --git a/playground-client/playground.config.js b/playground-client/playground.config.js index 337c220..f2c11d1 100644 --- a/playground-client/playground.config.js +++ b/playground-client/playground.config.js @@ -2,10 +2,11 @@ module.exports = { "apps": [{ "name" : "playground-nodejs", "autorestart" : true, - "script" : "npm", - "args" : "serve", + "script" : "./node_modules/@vue/cli-service/bin/vue-cli-service.js", + "args" : 'serve', "max_restarts": 10, "max_memory_restart": "500M", "restart_delay": 1000 }] } +