Browse Source

add pm2

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

2
playground-client/install-npm.sh

@ -8,7 +8,7 @@ echo $BASEDIR
cd $BASEDIR 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/VuetableCssConfig.js $BASEDIR/node_modules/vuetable-2/src/components
#cp $BASEDIR/playground.config.js /home/node #cp $BASEDIR/playground.config.js /home/node

9
playground-client/playground.config.js

@ -2,17 +2,8 @@ module.exports = {
"apps": [{ "apps": [{
"name" : "playground-nodejs", "name" : "playground-nodejs",
"autorestart" : true, "autorestart" : true,
"watch" : true,
"script" : "npm", "script" : "npm",
"args" : "serve", "args" : "serve",
"pid_file" : "/home/node/pid.pid",
"log_type" : "json",
"log_file" : "/home/node/logfile",
"error_file" : "/home/node/errorfile",
"out_file" : "/home/node/outfile",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"merge_logs" : true,
// "exec_mode" : "fork",
"max_restarts": 10, "max_restarts": 10,
"max_memory_restart": "500M", "max_memory_restart": "500M",
"restart_delay": 1000 "restart_delay": 1000

Loading…
Cancel
Save