diff --git a/backend/start.sh b/backend/start.sh index 44e0c581..e6d09364 100755 --- a/backend/start.sh +++ b/backend/start.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +cd "$SCRIPT_DIR" || exit + 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 '*'