from myApp import app if __name__ == "__main__": app.run()
from myApp import app app.run()
from myApp import app from dotenv import load_dotenv load_dotenv() if __name__ == '__main__': app.run(debug=True)
def run(): app.run(host = app.config.get("HOST"), port = app.config.get("PORT"), debug=True)
#Run a Webhard Server from myApp import app app.run(host = '0.0.0.0', debug = True, port = 5000)
def run(): app.register_blueprint(groups.groups) app.register_blueprint(main.main) app.register_blueprint(magazine.magazine) app.run(host = app.config.get("HOST"), port = app.config.get("PORT"), debug=True, threaded = True) #threaded = true
from myApp import app app.run(debug=True)
from myApp import app import os port = int(os.environ['PORT']) host = os.environ['IP'] app.run(port = port, host = host)
from myApp import app if __name__ == '__main__': app.run(debug=True, port=8000)
# a top-level scipt importing the application instance assists to run from myApp import app from myApp.models import User if _name_ == '_main_': app.run(host='0.0.0.0', port='5000') #@app.shell_context_processor #def make_shell_context(): # return {'db': db, 'User': User}