Open CLI and to do these commands for you (examples for Linux/MacOS)
pip install -r requirements.txt
# in Windows use `set` instead of `export`
# these will be used at login
export USER=username
export PASSWORD=password
# in Windows use `set` instead of `export`
export FLASK_APP=run.py
# you can run this in debug mode with this:
export FLASK_DEBUG=1
flask run
python3 run.py
# OR
gunicorn run:app
In program default enabled DEBUG mode. You can change this in create_app()
function at app/__init__.py
file.
# Load the default configuration
app.config.from_object('config.DevelopmentConfig')
Change above code attribute value to 'config.ProductionConfig'
. That you can see in config.py
file.