Exemplo n.º 1
0
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
Exemplo n.º 2
0
from news import app

if __name__ == "__main__":
    app.run(host="0.0.0.0")
Exemplo n.º 3
0
from news import app

if __name__ == "__main__":
    app.run()
Exemplo n.º 4
0
from news import app

if __name__=="__main__":
    app.run(debug=True)
Exemplo n.º 5
0
"""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))
Exemplo n.º 6
0
from news import app

if __name__ == '__main__':

    app.run(host='0.0.0.0', port=5100, debug=True)