Tunneling local web server for development using PyNgrok.
Flask-PyNgrok is available on PyPI and can be installed using pip.
pip install Flask-PyNgrok
Flask setting required FLASK_ENV=development
:
from Flask-PyNgrok import PyNgrok
pyngrok = PyNgrok()
def create_app(config):
app = Flask(__name__)
app.config.from_object(config)
pyngrok.init_app(app)
app = create_app(dev_config)
Flask-PyNgrok is distributed under MIT license, see LICENSE for more details.