API port through env variable

This commit is contained in:
Eden Kirin
2023-04-21 12:03:42 +02:00
parent 82259f4522
commit 21a69c7515
2 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,11 @@
#!/bin/sh
echo "Starting FairHopper game server"
PORT=${FAIRHOPPER_API_PORT=8010}
echo "Starting FairHopper game server on port ${PORT}"
uvicorn \
main:app \
--host 0.0.0.0 \
--port ${FAIRHOPPER_API_PORT} \
--port ${PORT} \
--workers=1