Skip to content
Snippets Groups Projects
runserver.py 454 B
Newer Older
def main():
    from tes import app
    import logging
    logging.basicConfig(filename="tes.log",format="%(asctime)s %(levelname)s:%(process)s: %(message)s")
    logger=logging.getLogger()
    logger.setLevel(logging.DEBUG)
    app.config['ENABLELAUNCH'] = True
    from flask_cors import CORS, cross_origin

    CORS(app, supports_credentials=True, origin="*")
    app.run(host='localhost',debug=True,port=8080)

if __name__ == "__main__":
    main()