from news import app,config if __name__ == '__main__': if config.DEBUG: app.run(host='0.0.0.0',debug=True) else: app.run(host='0.0.0.0',port=80,debug=False) application=app
from news import app if __name__ == "__main__": app.run(host="0.0.0.0")
from news import app if __name__ == "__main__": app.run()
from news import app if __name__=="__main__": app.run(debug=True)
"""Usage: run.py [--host=<host>] [--port=<port>] [--debug | --no-debug] --host=<host> set the host address or leave it to 0.0.0.0. --port=<port> set the port number or leave it to 5400. """ from news import app if __name__ == '__main__': from docopt import docopt arguments = docopt(__doc__, version='0.1dev') host = arguments['--host'] port = arguments['--port'] debug = not arguments['--no-debug'] if not port: port = 5400 if not host: host = '0.0.0.0' app.run(debug=debug, host=host, port=int(port))
from news import app if __name__ == '__main__': app.run(host='0.0.0.0', port=5100, debug=True)