diff options
author | Joris | 2024-05-20 09:40:11 +0200 |
---|---|---|
committer | Joris | 2024-05-20 09:40:11 +0200 |
commit | 436ddf6f23242eb709b591cd5e9cbf1553f8d390 (patch) | |
tree | dfed58b5e553f131fd3009f03f095ca40efc5949 /bin/dev-server | |
parent | 6baa0419d3b5eb63c70be446226a321f900e433d (diff) |
Allow to upload file and download from given link
Diffstat (limited to 'bin/dev-server')
-rwxr-xr-x | bin/dev-server | 16 |
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 |