aboutsummaryrefslogtreecommitdiff
path: root/bin/dev-server
blob: d4891273414e9291edcee58f49728027c90a708f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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