forked from orbit-oss/flask
add heroku/deploy options to quickstart, and add more clear links in tutorial setup.
This commit is contained in:
parent
7ed3cba658
commit
6b9e6a5a52
2 changed files with 46 additions and 10 deletions
|
|
@ -826,3 +826,39 @@ can do it like this::
|
|||
|
||||
from werkzeug.contrib.fixers import LighttpdCGIRootFix
|
||||
app.wsgi_app = LighttpdCGIRootFix(app.wsgi_app)
|
||||
|
||||
Share your Local Server with a Friend
|
||||
-------------------------------------
|
||||
|
||||
`Localtunnel <http://progrium.com/localtunnel/>`_ is a neat tool you can use to
|
||||
quickly share your local Flask server to a friend.
|
||||
|
||||
To install Localtunnel, open a terminal and run the following command::
|
||||
|
||||
sudo gem install localtunnel
|
||||
|
||||
Then, with Flask running at ``http://localhost:5000``, open a new Terminal window
|
||||
and type::
|
||||
|
||||
localtunnel 5000
|
||||
Port 5000 is now publicly accessible from http://54xy.localtunnel.com ...
|
||||
|
||||
*(Get a* ``gem: command not found`` *error? Download RubyGems*
|
||||
`here <http://rubygems.org/pages/download>`_ *.)*
|
||||
|
||||
If you load the URL given in the localtunnel output in your browser, you
|
||||
should see your Flask app. It's actually being loaded from your own computer!
|
||||
|
||||
Deploying to a Web Server
|
||||
-------------------------
|
||||
|
||||
`Heroku <http://www.heroku.com>`_ offers a free web platform to host your
|
||||
Flask app, and is the easiest way for you to put your Flask app online.
|
||||
They have excellent instructions on how to deploy your Flask app `here
|
||||
<http://devcenter.heroku.com/articles/python>`_.
|
||||
|
||||
Other resources for deploying Flask apps:
|
||||
|
||||
- `Deploying Flask on ep.io <https://www.ep.io/docs/quickstart/flask/>`_
|
||||
- `Deploying Flask on Webfaction <http://flask.pocoo.org/snippets/65/>`_
|
||||
- `Deploying Flask on Google App Engine <https://github.com/kamalgill/flask-appengine-template>`_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue