Login to the heroku command line interface as described here.
heroku apps:create NAME_OF_APP
In production we run uvicorn via gunicorn with
gunicorn -k uvicorn.workers.UvicornWorker
.
Heroku recommends controlling the concurrency with the WEB_CONCURRENCY
environment variable:
heroku config:set WEB_CONCURRENCY=3
heroku addons:create heroku-postgresql:hobby-dev
git push heroku master
heroku ps:scale web=1
Check the application is running with:
heroku open
heroku run python covidapi/import_data.py