Browse Source

add pm2

master
zeus 3 years ago
parent
commit
50c456fa2a
  1. 2
      playground-client/install-npm.sh
  2. 3
      playground-client/playground.config.js

2
playground-client/install-npm.sh

@ -12,4 +12,4 @@ npm cache clean --force
cp VuetableCssConfig.js node_modules/vuetable-2/src/components
pm2-runtime playground.config.js
pm2-runtime playground.config.js &

3
playground-client/playground.config.js

@ -4,9 +4,12 @@ module.exports = {
"autorestart" : true,
"script" : "./node_modules/@vue/cli-service/bin/vue-cli-service.js",
"args" : 'serve',
"run_as_user" : "node",
"exec_mode" : "fork",
"max_restarts": 10,
"max_memory_restart": "500M",
"restart_delay": 1000
}]
}

Loading…
Cancel
Save