Skip to content

Commit

Permalink
gh-actions/start.sh: Add database environment variable
Browse files Browse the repository at this point in the history
Signed-off-by: Devansh Singh <[email protected]>
  • Loading branch information
Devansh3712 committed Jul 2, 2024
1 parent 84b0091 commit e33dcbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gh-actions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ if [ ! -d "$folder" ] ; then
context: ../../../../
ports:
- 8082:8080
environment:
environment:
TEUTHOLOGY_API_SERVER_HOST: 0.0.0.0
TEUTHOLOGY_API_SERVER_PORT: 8080
TEUTHOLOGY_API_SQLITE_URI: sqlite:////teuthology_api/teuthology.db
depends_on:
- teuthology
- paddles
Expand Down
4 changes: 2 additions & 2 deletions start_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ PORT=${TEUTHOLOGY_API_SERVER_PORT:-"8082"}
VENV=${VENV:-"venv"}

source ${VENV}/bin/activate
cd /teuthology_api/src/

alembic -x verbose=1 upgrade head

cd /teuthology_api/src/

if [ "$DEPLOYMENT" = "development" ]; then
uvicorn teuthology_api.main:app --reload --port $PORT --host $HOST
else
Expand Down

0 comments on commit e33dcbb

Please sign in to comment.