Skip to content

Commit

Permalink
refac: SERVER_PORT renamed to PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jan 13, 2024
1 parent a63507c commit 0e03949
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN npm run build
FROM python:3.11-slim-bookworm as base

ENV ENV=prod
ENV PORT ""

ENV OLLAMA_API_BASE_URL "/ollama/api"

Expand Down
4 changes: 2 additions & 2 deletions backend/dev.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SERVER_PORT="${SERVER_PORT:-8080}"
uvicorn main:app --port $SERVER_PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload
PORT="${PORT:-8080}"
uvicorn main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload
4 changes: 2 additions & 2 deletions backend/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

SERVER_PORT="${SERVER_PORT:-8080}"
uvicorn main:app --host 0.0.0.0 --port $SERVER_PORT --forwarded-allow-ips '*'
PORT="${PORT:-8080}"
uvicorn main:app --host 0.0.0.0 --port $PORT --forwarded-allow-ips '*'

0 comments on commit 0e03949

Please sign in to comment.