Can now run from any directory

This commit is contained in:
Mike Slinn 2024-01-17 17:30:58 -05:00
parent 5e32db1c57
commit f9885a15e4

View file

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR" || exit
PORT="${PORT:-8080}" PORT="${PORT:-8080}"
uvicorn main:app --host 0.0.0.0 --port $PORT --forwarded-allow-ips '*' uvicorn main:app --host 0.0.0.0 --port "$PORT" --forwarded-allow-ips '*'