summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2023-01-13 13:52:41 +0100
committerjak1 <jak1@themanaworld.org>2023-01-13 13:52:41 +0100
commit99382fd6fa9c943880eed2b77263797c20ae43cb (patch)
tree2574a8398717c8721b080955c41dae29cb4fabe7
parent3a4d0c8b75d6296756fd53cd1d87bfd16cffad54 (diff)
downloadthepixelworld-99382fd6fa9c943880eed2b77263797c20ae43cb.tar.gz
thepixelworld-99382fd6fa9c943880eed2b77263797c20ae43cb.tar.bz2
thepixelworld-99382fd6fa9c943880eed2b77263797c20ae43cb.tar.xz
thepixelworld-99382fd6fa9c943880eed2b77263797c20ae43cb.zip
changed npm start & stop (simply kill it, doesnt matter for now, we can't loose anything important)
-rw-r--r--package.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index e777a4f..5b48abb 100644
--- a/package.json
+++ b/package.json
@@ -14,8 +14,8 @@
"socket.io": "^4.2.0"
},
"scripts": {
- "start": "node app.js thepixelworld & echo $! > .pid",
- "stop": "pkill -F .pid && rm .pid",
+ "start": "node app.js thepixelworld &",
+ "stop": "ps x | grep \"node app.js thepixelworld\" | grep -v 'grep' | awk '{ print $1; }' | xargs kill -9",
"restart": "npm stop && npm start",
"test": "echo \"not configured yet!\" && exit 1"
},