diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dev-server | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/bin/dev-server b/bin/dev-server index d489127..cb124df 100755 --- a/bin/dev-server +++ b/bin/dev-server @@ -3,14 +3,20 @@ set -euo pipefail if ! [ -f db.sqlite3 ]; then - echo "Creating databise" + 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 \ - --restart \ - --clear \ - --exts py \ - python src/main.py + --clear \ + --restart \ + -w src \ + "RUST_LOG=info cargo run" |