from app import webapp # run flask app at localhost:5000 webapp.run(debug=False)
from app import webapp webapp.run() #webapp.run('0.0.0.0',5001,debug=True)
#!venv/bin/python from app import webapp webapp.run(host='0.0.0.0', debug=True) #webapp.run(host='0.0.0.0')
#!venv/bin/python from app import webapp #webapp.run(host='0.0.0.0',debug=True) webapp.run(host='0.0.0.0', threaded=True)
from app import webapp if __name__ == "__main__": webapp.run(port=8001)
from app import webapp if __name__ == "__main__": webapp.run(debug=True, host='0.0.0.0', port=5000)
from app import webapp # webapp.run(host='0.0.0.0',debug=True) webapp.run(host='0.0.0.0')
from app import webapp from config import * if __name__ == "__main__": webapp.run(host="0.0.0.0", port=web_port)
from app import webapp webapp.run("0.0.0.0", 5000)
#!venv/bin/python from app import webapp webapp.run(host='localhost', port=5001, debug=True)
from app import webapp webapp.run(host='127.0.0.1')
from app import webapp # webapp.run('0.0.0.0',5001,debug=True) webapp.run('0.0.0.0', port=80)
from app import webapp webapp.run(port=5000, debug=True)
#!venv/bin/python from app import webapp webapp.run(host='0.0.0.0', port=4567, debug=True) #webapp.run(host='0.0.0.0')
from app import webapp webapp.run(host='0.0.0.0', port=80, debug=False)
import os from app import webapp from orm import DB, Session import models webapp.config.update({ 'SQLALCHEMY_DATABASE_URI': os.environ['UQFINAL_DB_URI'], 'SQLALCHEMY_TRACK_MODIFICATIONS': False, 'SQLALCHEMY_POOL_SIZE': 0, 'SQLALCHEMY_POOL_RECYCLE': 500, }) DB.init_app(webapp) if __name__ == "__main__": import sys args = sys.argv if len(args) > 1 and args[1] == "generatedb": with webapp.app_context(): s = Session() models.ORMBase.metadata.create_all(s.connection()) s.commit() else: webapp.run(port=8080)
from app import webapp webapp.run(host='127.0.0.1', port=5001)
#!venv/bin/python from app import webapp webapp.run(host='0.0.0.0', port='5001', debug=False, use_reloader=False) #webapp.run(host='0.0.0.0')
#!./flask/bin/python from app import webapp webapp.run(host='0.0.0.0', debug=True, threaded=True) #webapp.run(host='0.0.0.0')
#!venv/bin/python from app import webapp webapp.run(host='0.0.0.0',port=5001, debug=True) #webapp.run(host='0.0.0.0')
from app import webapp # webapp.run('0.0.0.0',5001,debug=True) webapp.run('0.0.0.0', 5000)
#!venv/bin/python from app import webapp webapp.run(host='127.0.0.1', debug=True)
#!venv/bin/python from app import webapp, db # This creates all the tables described in the models.py, the db itself must exist already # # It still works fine if the tables already exist unless their structure has been changed #db.auto_scale.__table__.drop() db.create_all() webapp.run(host='0.0.0.0', debug=False)
#!venv/bin/python from app import webapp webapp.run(host='127.0.0.1', debug=False) #webapp.run(host='0.0.0.0')
#!venv/bin/python from app import webapp # run local ONLY to avoid potential incoming traffic on my own machine webapp.run(host='0.0.0.0',port=80, debug=True) #webapp.run(host='0.0.0.0')
__author__ = 'zexxonn' from app import webapp from setupTools import setupDatabase setupDatabase() webapp.run(debug=True)
#!venv/bin/python from app import webapp #webapp.run('0.0.0.0',5001,debug=True) #webapp.run('0.0.0.0',5001) webapp.run('0.0.0.0', 5000, debug=True)
#!../venv/bin/python from app import webapp webapp.run('0.0.0.0',5000,debug=False) #webapp.run('0.0.0.0',5000)
def run(): webapp.logger.info('flask-eikon is started.') webapp.run(host=webapp.config['IP'], port=webapp.config['PORT']) webapp.logger.info('flask-eikon is terminated.') return 0
from app import webapp if __name__ == '__main__': webapp.run(host='0.0.0.0', port='5000', debug=True)