#!/usr/bin/env bash set -euo pipefail if ! [ -f db.sqlite3 ]; then echo "Creating database" sqlite3 db.sqlite3 < init-db.sql sleep 1 fi export HOST="127.0.0.1" export PORT="8080" export KEY="1234" export DB="db.sqlite3" export FILES_DIR="files" watchexec \ --clear \ --restart \ -w src \ "RUST_LOG=info cargo run"