3 ms·
If you don't want to mess with setting up Web servers, sign up for a Heroku account (https://api.heroku.com/signup https://api.heroku.com/signup), and host it o
by espeed 15y ago
If you don't want to mess with setting up Web servers, sign up for a Heroku account (https://api.heroku.com/signup https://api.heroku.com/signup), and host it on a free dyno.
First set up the Heroku "toolbelt" (https://toolbelt.heroku.com https://toolbelt.heroku.com), and once that's done, you can run this bash script (https://gist.github.com/2622850 https://gist.github.com/2622850) to create and deploy a "hello world" Flask app on Heroku:
$ heroku login
$ bash setup.sh helloworld
$ cd helloworld
$ git push heroku master
It should return a live Web URL for your app:
http://strong-stream-5848.herokuapp.com deployed to Heroku
Kenneth (http://kennethreitz.com http://kennethreitz.com) has shown you can get good performance with Flask on the free dyno (http://flask.pocoo.org/mailinglist/archive/2012/2/22/flask-on-heroku-%2B-gunicorn-static-files/#cff05916ae6854557b93d0226cb87151 http://flask.pocoo.org/mailinglist/archive/2012/2/22/flask-o...).
See the Heroku Quickstart (https://devcenter.heroku.com/articles/quickstart https://devcenter.heroku.com/articles/quickstart) and Python tutorial (https://devcenter.heroku.com/articles/python https://devcenter.heroku.com/articles/python) for details.
- tocomment 15y agoDoes Django get good performancee on the free dyno?
- peter_l_downs 15y agoI found this article interesting/useful because it is focused on DIY. I've been using dotcloud for hosting my flask apps, and it's very easy, but if I ever want to do it myself one day I now know how.
- president 15y agoOr Google App Engine, which is even easier. All you do is load your application into their GUI and click 'deploy'. There are templates abound: https://github.com/gumho/minimal-flask-gae-template https://github.com/gumho/minimal-flask-gae-template https://github.com/kamalgill/flask-appengine-template https://github.com/kamalgill/flask-appengine-template https://github.com/toomore-such/template-gae-with-flask https://github.com/toomore-such/template-gae-with-flask