diff --git a/install.sh b/install.sh index 67cecdd..47363c1 100644 --- a/install.sh +++ b/install.sh @@ -83,7 +83,7 @@ cat << FOE > $wdir/src-local/ecosystem.config.js module.exports = { "apps": [ { - "name" : "server", + "name" : "hybridserver", "autorestart" : true, "watch" : true, "cwd" : "$wdir/src-local", diff --git a/src-local/start-server.sh b/src-local/start-server.sh index 7f1178d..c42318d 100755 --- a/src-local/start-server.sh +++ b/src-local/start-server.sh @@ -1,2 +1,3 @@ +pm2 stop hybridserver pm2 start ecosystem.config.js --watch --ignore-watch="node_modules"