diff options
author | jak1 <jak1@themanaworld.org> | 2023-01-13 13:52:41 +0100 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2023-01-13 13:52:41 +0100 |
commit | 99382fd6fa9c943880eed2b77263797c20ae43cb (patch) | |
tree | 2574a8398717c8721b080955c41dae29cb4fabe7 | |
parent | 3a4d0c8b75d6296756fd53cd1d87bfd16cffad54 (diff) | |
download | thepixelworld-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.json | 4 |
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" }, |