Flask-RESTful to Heroku

heroku
flask
python
git

#1

I am attempting to deploy the minimal API from the Flask-RESTful documentation to Heroku, but git push heroku master failed twice:

  • First, with the message that the buildpack could not be determined, so I run heroku buildpacks:set heroku/python
  • Then with the message that my app is not compatible with the buildpack.

I do not currently have a requirements.txt file since I used sudo easy_install to install flask-restful.

  • Do I need to generate a requirements.txt in order for the app to push properly to Heroku?
  • Do I need to use pip within a virtualenv?

https://flask-restful.readthedocs.io/en/latest/quickstart.html