summaryrefslogtreecommitdiff
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
parent07b9d921e43c46c96793e559813a6901fa72868f (diff)
downloadthepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.tar.gz
thepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.tar.bz2
thepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.tar.xz
thepixelworld-7ee9e5961ac9c6045f7e593d409107d7d70e9867.zip
added stop script
-rw-r--r--.gitignore3
-rw-r--r--package.json3
2 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index cf167f4..6e0e94a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
node_modules
-*test* \ No newline at end of file
+*test*
+.pid \ No newline at end of file
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": [