aboutsummaryrefslogtreecommitdiff
path: root/bin/dev-server
diff options
context:
space:
mode:
authorJoris2024-05-20 09:40:11 +0200
committerJoris2024-05-20 09:40:11 +0200
commit436ddf6f23242eb709b591cd5e9cbf1553f8d390 (patch)
treedfed58b5e553f131fd3009f03f095ca40efc5949 /bin/dev-server
parent6baa0419d3b5eb63c70be446226a321f900e433d (diff)
Allow to upload file and download from given link
Diffstat (limited to 'bin/dev-server')
-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