from FlaskApp import app import sys import logging import site logging.basicConfig(stream=sys.stderr) if __name__ == '__main__': app.run(host="0.0.0.0", port=5600)
#!/usr/bin/python from FlaskApp import app app.run(debug=True)
from FlaskApp import app app.run(debug=True)
import os import sys sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), 'FlaskApp'))) from FlaskApp import app, createApp createApp(app) if __name__ == "__main__": app.run()
from FlaskApp import app app.run(host='0.0.0.0', debug=True)
from FlaskApp import app if __name__ == "__main__": app.run(host="0.0.0.0", port=8080)
from FlaskApp import app if __name__ == "__main__": app.run(port="9090", host="127.0.0.1", debug=True)
import os from FlaskApp import app if __name__ == "__main__": app.run(host=os.getenv('IP', '127.0.0.1'), port=int(os.getenv('PORT', 8080)), debug=True)
from FlaskApp import app if __name__ == "__main__": app.run(ssl_context="adhoc")
#import WeiXinCore.WeiXin import sys reload(sys) sys.setdefaultencoding('utf-8') from FlaskApp import app app.run(debug=True, port=5000)
from FlaskApp import app if __name__ == '__main__': app.run(host=app.config.get("FLASK_HOST"), port=app.config.get("FLASK_PORT"), debug=app.config.get("FLASK_DEBUG"))
from FlaskApp import app import sys #set environment and load proper config env = sys.argv[0].lower() if (env == 'production'): app.config.from_object('FlaskApp.Instance.config.ProductionConfig') app.run(debug=False) elif (env == 'staging') or (env=='qa'): app.config.from_object('FlaskApp.Instance.config.TestingConfig') app.run(debug=False) else: app.config.from_object('FlaskApp.Instance.config.DevelopmentConfig') app.run(debug=True)
""" This script runs the FlaskApp application using a development server. """ from os import environ from FlaskApp import app if __name__ == '__main__': HOST = environ.get('FLASK_RUN_HOST', 'localhost') try: PORT = int(environ.get('FLASK_RUN_PORT', '5000')) except ValueError: PORT = 5000 app.run(HOST, PORT)
from os import environ from FlaskApp import app if __name__ == '__main__': HOST = environ.get('SERVER_HOST', 'localhost') try: PORT = int(environ.get('SERVER_PORT', '5000')) except ValueError: PORT = 5000 app.secret_key = 'secret123' app.run(HOST, PORT, debug=True, ssl_context='adhoc')
from FlaskApp import app app.config['CSRF_ENABLED'] = True app.config['SECRET_KEY'] = 'iuhiuh3iu1h2o3h1oui2h3981h23921u098123i12' if __name__ == '__main__': app.run(host='0.0.0.0')
from FlaskApp import app app.run(debug=True,port=443,host='0.0.0.0',ssl_context='adhoc')
from FlaskApp import app if __name__ == "__main__": app.run(host="0.0.0.0", debug=True)