diff --git a/backend/dev.sh b/backend/dev.sh index 9d0b5fa42..50dc5cad1 100644 --- a/backend/dev.sh +++ b/backend/dev.sh @@ -1 +1,2 @@ -uvicorn main:app --port 8080 --host 0.0.0.0 --forwarded-allow-ips '*' --reload \ No newline at end of file +SERVER_PORT="${SERVER_PORT:-8080}" +uvicorn main:app --port $SERVER_PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload \ No newline at end of file diff --git a/backend/start.sh b/backend/start.sh index ba68207ec..9ced76448 100755 --- a/backend/start.sh +++ b/backend/start.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash -uvicorn main:app --host 0.0.0.0 --port 8080 --forwarded-allow-ips '*' +SERVER_PORT="${SERVER_PORT:-8080}" +uvicorn main:app --host 0.0.0.0 --port $SERVER_PORT --forwarded-allow-ips '*'