aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dev-server16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/dev-server b/bin/dev-server
new file mode 100755
index 0000000..d489127
--- /dev/null
+++ b/bin/dev-server
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+if ! [ -f db.sqlite3 ]; then
+
+ echo "Creating databise"
+ sqlite3 db.sqlite3 < init-db.sql
+ sleep 1
+
+fi
+
+watchexec \
+ --restart \
+ --clear \
+ --exts py \
+ python src/main.py