forked from VallariAg/teuthology-api
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- use TEUTHOLOGY_API_SERVER_HOST and TEUTHOLOGY_API_SERVER_PORT when starting the server to map host and port - if DEPLOYMENT=development, start reload server otherwise start gunicorn server - remove PADDLES_URL from src/config.py (read from env variable instead) Signed-off-by: Vallari Agrawal <[email protected]>
- Loading branch information
Showing
6 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env sh | ||
set -ex | ||
trap exit TERM | ||
|
||
HOST=${TEUTHOLOGY_API_SERVER_HOST:-"0.0.0.0"} | ||
PORT=${TEUTHOLOGY_API_SERVER_PORT:-"8080"} | ||
|
||
|
||
cd /teuthology_api/src/ | ||
|
||
if [ "$DEPLOYMENT" = "development" ]; then | ||
uvicorn main:app --reload --port $PORT --host $HOST | ||
else | ||
gunicorn -c /teuthology_api/gunicorn_config.py main:app | ||
fi |