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.
- add start_container.sh - if DEPLOYMENT=development, start reload server otherwise start gunicorn server - use env variables to map host and port - read PADDLES_URL from env variable instead of src/config.py Signed-off-by: Vallari Agrawal <[email protected]>
- Loading branch information
Showing
7 changed files
with
45 additions
and
10 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
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 |