summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-09-14 21:41:35 +0200
committerjak1 <mike.wollmann@gmail.com>2021-09-14 21:41:35 +0200
commit7ee9e5961ac9c6045f7e593d409107d7d70e9867 (patch)
treecf4444095aa6255c28dbc52681f2e532895e515d /package.json
parent07b9d921e43c46c96793e559813a6901fa72868f (diff)
downloadthepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.tar.gz
thepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.tar.bz2
thepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.tar.xz
thepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.zip
added stop script
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 041b924..8d21565 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,8 @@
"socket.io": "^4.1.3"
},
"scripts": {
- "start": "node app.js",
+ "start": "node app.js thepixelworld & echo $! > .pid",
+ "stop": "pkill -F .pid && rm .pid",
"test": "echo \"not configured yet!\" && exit 1"
},
"keywords": [