Browse Source

add pm2

master
zeus 3 years ago
parent
commit
1ba9e95188
  1. 6
      playground-client/install-npm.sh
  2. 5
      playground-client/playground.config.js

6
playground-client/install-npm.sh

@ -9,11 +9,7 @@ cd $BASEDIR
npm i npm i
npm cache clean --force 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 VuetableCssConfig.js node_modules/vuetable-2/src/components
cp playground.config.js /home/node
cd $cpwd pm2-runtime playground.config.js
pm2-runtime /home/node/playground.config.js

5
playground-client/playground.config.js

@ -2,10 +2,11 @@ module.exports = {
"apps": [{ "apps": [{
"name" : "playground-nodejs", "name" : "playground-nodejs",
"autorestart" : true, "autorestart" : true,
"script" : "npm", "script" : "./node_modules/@vue/cli-service/bin/vue-cli-service.js",
"args" : "serve", "args" : 'serve',
"max_restarts": 10, "max_restarts": 10,
"max_memory_restart": "500M", "max_memory_restart": "500M",
"restart_delay": 1000 "restart_delay": 1000
}] }]
} }

Loading…
Cancel
Save