summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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": [