Recently I had exactly the same problem as Jonatan Heyman in his post Heroku: Running multiple python processes in a single dyno using foreman. I also needed to run a web and Celery process in one Heroku dyno during prototyping.
I really liked Jonatan's approach, but as the $PORT bug was fixed recently, I decided to use Honcho in order to avoid mixing ruby and python in one project.
The process is quite straight forward:
web: honcho -f ProcfileHoncho start
That should theoretically be it. Unfortunately, there is a small bug in Honcho. Before this bug gets fixed you will need to run the following workaround for Honcho to work properly:
heroku config:set USER=heroku
rd@radekdostal.com
+43 681 815 945 10
skype: radekdostal
www.mimo-domov.cz - Czech and Slovak people abroad
Awesome tutorial!
I also have a small django side project (I wanted to run both the web front-end and celery on a singly dyno while I was still prototyping).
This worked awesome for me, the bug fix was in the latest version (I got 0.6.6) and everything worked (running django 1.7, python3, and celery 3.1).
Thanks!
Anthony Honstain