zeus
3 years ago
2 changed files with 27 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
#!/bin/sh |
|||
|
|||
npm i |
|||
npm cache clean --force |
|||
cp VuetableCssConfig.js node_modules/vuetable-2/src/components |
|||
cp playground.config.js /home/node |
|||
pm2-runtime /home/node/playground.config.js |
@ -0,0 +1,20 @@ |
|||
module.exports = { |
|||
"apps": [{ |
|||
"name" : "playground-nodejs", |
|||
"autorestart" : true, |
|||
"watch" : true, |
|||
"script" : "npm", |
|||
"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_memory_restart": "500M", |
|||
"restart_delay": 1000 |
|||
}] |
|||
} |
Loading…
Reference in new issue