feat: custom port for server

This commit is contained in:
Anuraag Jain 2024-01-11 21:54:14 +02:00
parent 5c5bde3b85
commit a63507c21e
2 changed files with 4 additions and 2 deletions

View file

@ -1 +1,2 @@
uvicorn main:app --port 8080 --host 0.0.0.0 --forwarded-allow-ips '*' --reload
SERVER_PORT="${SERVER_PORT:-8080}"
uvicorn main:app --port $SERVER_PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload

View file

@ -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 '*'