Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.26 KB

readme.md

File metadata and controls

55 lines (36 loc) · 1.26 KB

Deploy fastAPI to Heroku using Docker

FastAPI Modern, fast, web framework for Python
Docker Containerization software
Heroku Hosting platform

Requirements

Git (or just download the repo)
Heroku cli (to run the heroku commands)

Instructions

Note: Replace your-app-name in the instructions with the name you wish to have on your app.

  1. Install git (or just downlad the repo)

  2. Install Heroku cli and log in

  3. Clone or download this repo.

git clone https://github.com/askblaker/fastapi-docker-heroku.git
  1. cd into the directory
cd fastapi-docker-heroku
  1. Create the heroku app
heroku create your-app-name
  1. Set the heroku cli git remote to that app
heroku git:remote your-app-name
  1. Set the heroku stack setting to container
heroku stack:set container
  1. Push to heroku
git push heroku main
  1. Enjoy your fastAPI app at https://your-app-name.herokuapp.com