summaryrefslogtreecommitdiffstats
path: root/development/stop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'development/stop.sh')
-rwxr-xr-xdevelopment/stop.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/development/stop.sh b/development/stop.sh
new file mode 100755
index 0000000..4ef4493
--- /dev/null
+++ b/development/stop.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+
+# shutdown all docker container
+docker compose -f "$SCRIPT_DIR/docker-compose.yml" down -v
+
+# kill the npm process which server on port 80
+kill `lsof -t -i:80`