Reproduction of FastAPI deploy in heroku giving an error h10
pip install -qUr requirements-dev.txt
pre-commit install
pre-commit run --all-files
uvicorn main:app --reload
docker-compose up --build -d
source codes
requirements.txt | main.py | Procfile |
---|---|---|
|
from fastapi import FastAPI
app = FastAPI()
@app.get('/')
def get_root():
return {'message': 'this is the root message'} |
|
source codes
requirements.txt | main.py | Procfile |
---|---|---|
|
from fastapi import FastAPI
app = FastAPI()
@app.get('/')
def get_root():
return {'message': 'this is the root message'} |
|
source codes
requierements.txt | main.py | Procfile |
---|---|---|
|
from fastapi import FastAPI
app = FastAPI()
@app.get('/')
def get_root():
return {'message': 'this is the root message'} |
|