I have a Flask API endpoint that runs on a Gunicorn server deployed on heroku. The program is run with the following simple procfile:
web: gunicorn app:app --w