4. Get started
• Install git, foreman, pip, virtualenv
• Clone/create a repo with a Procfile that
starts a HTTP service
• foreman start to test it locally
• heroku create app_name –
stack=cedar && git push heroku
master
6. Foreman’s Procfile defines the service
web: gunicorn app:APP -b 0.0.0.0:$PORT -w 3
You can run the same thing at the console to test:
$ gunicorn app:APP -b 0.0.0.0:$PORT -w 3
7. Heroku logging
• Captures stdout, stderr
• You’ll need it since you have no persistent disk
• Simplest case you can just use a print statement
• Free plan has limitations
• Consider an offsite log manager