-
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.
Create README file for deploying the Fastapi server
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Deploying the FastAPI Server on Heroku (cloud service provider) | ||
|
||
### Step 1: Log in to Heroku from the command line | ||
``` | ||
heroku login | ||
``` | ||
|
||
### Step 2: Create a new Heroku app | ||
``` | ||
heroku create your-fastapi-app-name | ||
``` | ||
|
||
### Step 3: Initialize a Git repository | ||
``` | ||
git init | ||
``` | ||
|
||
### Step 4: Add and commit the files | ||
``` | ||
git add . | ||
git commit -m "Deploy FastAPI server" | ||
``` | ||
|
||
### Step 5: Deploy the app | ||
``` | ||
git push heroku master | ||
``` | ||
|
||
### Step 6: Update Streamlit App | ||
Once the API server is deployed, update the URL in the Streamlit app to point to the deployed server. |