How I Got a Tornado App Running on Heroku in 10 Seconds
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:
- I’m on a brand new computer, so I had to install some basic stuff first:
sudo curl http://python-distribute.org/distribute_setup.py | sudo python
sudo curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python
- Get the starter repo.
- Make a Heroku account if you don’t have one and set it up.
- Make init-project.sh runnable:
chmod +x init-project.sh
- That should be it, and your Heroku app is live!
Let me know if this works for y’all!