Created
September 14, 2020 14:53
-
-
Save jimdiroffii/165bb24ae8f4dfb8e47216c5d3fdccf0 to your computer and use it in GitHub Desktop.
Bash script for setting up and starting a Flask application development server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
export FLASK_APP=application.py | |
export FLASK_DEBUG=1 | |
export FLASK_ENV=development | |
export FLASK_TESTING=True | |
flask run --host=0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run this script in your Flask application's root folder with a preceding dot to set the variables into your current environment.