forked from artefactory/xhec-mlops-project-student
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4/deploy_model_api' of https://github.com/matthieudelsa…
…rt/xhec-mlops-project-student into 4/deploy_model_api
- Loading branch information
Showing
2 changed files
with
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/bash | ||
# Set Prefect API URL to be accessible at 0.0.0.0:4200 | ||
prefect config set PREFECT_API_URL=http://0.0.0.0:4200/api | ||
|
||
sqlite3 --version | ||
|
||
# Start Prefect server in the background | ||
prefect server start --host 0.0.0.0 & | ||
prefect server start --host 0.0.0.0 --port 4200 & | ||
|
||
# Go in the good directory | ||
cd src/web_service | ||
# Navigate to the correct directory | ||
cd /web_service # Make sure this path is correct | ||
|
||
# Start FastAPI with Uvicorn | ||
uvicorn main:app --reload --port 8001 | ||
# Start FastAPI with Uvicorn on port 8001 | ||
uvicorn main:app --host 0.0.0.0 --port 8001 |