lyzidiamond/centroids — pull request #1 by jeremiak (2014-05-21 02:03:33+00:00)
Title: heroku-able

To run on Heroku, you'll want two files for python apps:
1. Procfile (required for all Heroku apps regardless of language/framework)
2. requirements.txt

Procfile is your process file and tells Heroku what you want it to do. In this case it is telling Heroku that for the web instances you want it to simply run `python hello.py` which is what you do to get the app going locally

requirements.txt tells Heroku (and any other user) what dependencies you want loaded to make the app run properly. It is really easy to generate from within your virtual environment. You simply run `pip freeze > requirements.txt` in the project directory.

Protip: To install the requirements from a requirements.txt file you'll just use `pip install -r requirements.txt` and it will run through the file and install the dependencies.