Commit 0e039492 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac: SERVER_PORT renamed to PORT

parent a63507c2
...@@ -17,6 +17,7 @@ RUN npm run build ...@@ -17,6 +17,7 @@ RUN npm run build
FROM python:3.11-slim-bookworm as base FROM python:3.11-slim-bookworm as base
ENV ENV=prod ENV ENV=prod
ENV PORT ""
ENV OLLAMA_API_BASE_URL "/ollama/api" ENV OLLAMA_API_BASE_URL "/ollama/api"
......
SERVER_PORT="${SERVER_PORT:-8080}" PORT="${PORT:-8080}"
uvicorn main:app --port $SERVER_PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload uvicorn main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload
\ No newline at end of file \ No newline at end of file
#!/usr/bin/env bash #!/usr/bin/env bash
SERVER_PORT="${SERVER_PORT:-8080}" PORT="${PORT:-8080}"
uvicorn main:app --host 0.0.0.0 --port $SERVER_PORT --forwarded-allow-ips '*' uvicorn main:app --host 0.0.0.0 --port $PORT --forwarded-allow-ips '*'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment