From 50c456fa2a3ae7b0f263a0e147c1a733c3cf554e Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 20 Nov 2021 03:05:46 +0200 Subject: [PATCH] add pm2 --- playground-client/install-npm.sh | 2 +- playground-client/playground.config.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/playground-client/install-npm.sh b/playground-client/install-npm.sh index 132890b..7552a12 100755 --- a/playground-client/install-npm.sh +++ b/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 & diff --git a/playground-client/playground.config.js b/playground-client/playground.config.js index f2c11d1..d344753 100644 --- a/playground-client/playground.config.js +++ b/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 }] } +