Saturday 28 April 2012

Creating a Python App on Heroku

Need a requirements file containing all items plus:

distribute
gunicorn==0.13.4

Plus a Procfile:
web: gunicorn app:app -b 0.0.0.0:$PORT -w 3

Then you just go:
heroku login
heroku create --stack cedar
git push heroku master
heroku ps:scale web=1