From 9297f43128c856f231d7c1cdaedf40bf1d1ec2f3 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 20 Nov 2021 00:07:55 +0200 Subject: [PATCH] add pm2 --- playground-client/install-npm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playground-client/install-npm.sh b/playground-client/install-npm.sh index f8855d4..2f70fb6 100755 --- a/playground-client/install-npm.sh +++ b/playground-client/install-npm.sh @@ -1,11 +1,15 @@ #!/bin/sh BASEDIR=$(dirname $0) +cpwd=$PWD echo $BASEDIR +cd $BASEDIR + npm i npm cache clean --force cp $BASEDIR/VuetableCssConfig.js $BASEDIR/node_modules/vuetable-2/src/components cp $BASEDIR/playground.config.js /home/node +cd $cpwd pm2-runtime /home/node/playground.config.js