API port through env variable
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user