Skip to content

Commit

Permalink
Create README file for deploying the Fastapi server
Browse files Browse the repository at this point in the history
  • Loading branch information
W7CH authored Aug 6, 2024
1 parent ed6e011 commit 0cb87d8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions fastapi_model_serving/README.md
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.

0 comments on commit 0cb87d8

Please sign in to comment.