Skip to content

How I Got a Tornado App Running on Heroku in 10 Seconds

2012 April 26

I’d been wanting to try out Heroku and Tornado for a while, so why not try them together?  I found a nice starter repo by Mike Dory, co-author of the O’Reilly Tornado book, so I figured I’d use that.  I forked it and rearranged it a bit, and it worked perfectly!  Here’s what I did:

  1. I’m on a brand new computer, so I had to install some basic stuff first:
    1. Setuptools:
      sudo curl http://python-distribute.org/distribute_setup.py | sudo python
    2. PIP:
      sudo curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python
  2. Get the starter repo.
  3. Make a Heroku account if you don’t have one and set it up.
  4. Make init-project.sh runnable:
    chmod +x init-project.sh
  5. Run
    ./init-project.sh
  6. That should be it, and your Heroku app is live!

Let me know if this works for y’all!

Related Posts:


2 Responses
  1. hok permalink
    October 27, 2012

    big help. thanks!

  2. Patrick Walmsley permalink
    November 20, 2013

    Had an issue with the first command on osX 10.9. The sudo wasn’t vaidating my password. I ran sudo ls to become sudo, then ran the command as it was provided.

Comments are closed.