I would recommend add a run.py
file at the WorkingDirectory
with content like:
# -*- coding: utf-8 -*-
from app import create_app
from config import Config
# Remember don't use if __name__ == 'main' in this file
my_app = create_app(Config)
my_app.run(host='127.0.0.1', port=5000, debug=True)
and then config the run/debug configuration like:
And all things will work just like we have the app.py