Exemplo n.º 1
0
def startApp():
    app.run(debug=True)


# if __name__ == '__main__':
# 	# app.run(debug=True)
# 	startApp()
Exemplo n.º 2
0
def main():
    app.run(host=app.config.get('SERVER_IP'),
            port=app.config.get('SERVER_PORT'),
            debug=app.config.get('DEBUG'))
Exemplo n.º 3
0
from todo import app

if __name__ == "__main__":
    app.run(debug=True, threaded=True)
Exemplo n.º 4
0
def main():
    app.run(host=app.config.get('SERVER_IP'),
            port=app.config.get('SERVER_PORT'),
            debug=app.config.get('DEBUG'))
Exemplo n.º 5
0
from todo import app

if __name__ == '__main__':
    app.run(port=4996)
Exemplo n.º 6
0
#coding:utf-8
# 2016年5月18日06:51:17 开始开发....
#
from todo import app

app.run(debug=True)
app.secret_key="sssss"
Exemplo n.º 7
0
from todo import app


if __name__ == "__main__":
    app.run(debug=True)
Exemplo n.º 8
0
from todo import app

if __name__ == '__main__':
    app.run()
Exemplo n.º 9
0
"""Main file of our application.

When ran with:
$ python run.py
it will reset the database and start the webserver.
"""
from todo import app, db

if __name__ == "__main__":

    db.drop_all()
    db.create_all()
    app.run("0.0.0.0")
Exemplo n.º 10
0
from todo import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)
Exemplo n.º 11
0
#!flask/bin/python
from todo import app

app.run()
Exemplo n.º 12
0
def run(host='localhost', port=5005):
    app.run(host=host, port=port)
Exemplo n.º 13
0
#!/usr/bin/env python3
from todo import app
from todo.database import init_db

if __name__ == "__main__":
    init_db()
    app.run(debug=True, threaded=True, host="0.0.0.0")
Exemplo n.º 14
0
from todo import app
app.run(host='127.0.0.1', port=5000, debug=True)
Exemplo n.º 15
0
#!/usr/bin/env python3
from todo import app
from todo.database import init_db

if __name__ == "__main__":
    init_db()
    app.run(debug=True, threaded=True)
Exemplo n.º 16
0
from todo import app

app.run(host='0.0.0.0', port=5000)
Exemplo n.º 17
0
#!/usr/bin/env python3
from todo import app
from todo.database import init_db

if __name__ == "__main__":
    init_db()
    app.run(host="0.0.0.0", port=8080, debug=True, threaded=True)
Exemplo n.º 18
0
import sys

from todo import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=int(8888))
Exemplo n.º 19
0
from todo import app

if __name__ == "__main__":
    app.run();
Exemplo n.º 20
0
#!/usr/bin/env python

from todo import app

if __name__ == '__main__':
    app.run(debug=True, host="0.0.0.0", port=8000)
    # app.run()
Exemplo n.º 21
0
from todo import app
app.run(debug=True, host='0.0.0.0')
Exemplo n.º 22
0
"""Main file of our application.

When ran with:
$ python run.py
it will reset the database and start the webserver.
"""

from todo import app, db

if __name__ == "__main__":

    db.drop_all()
    db.create_all()

    app.run(host="0.0.0.0")
Exemplo n.º 23
0
from todo import app

if __name__ == '__main__':
    app.run(port=3000, debug=True)
Exemplo n.º 24
0
from todo import app
from os import environ

if __name__ == '__main__':

    HOST = environ.get('SERVERHOST', 'localhost')

    try:
        PORT = int(environ.get('SERVER_PORT', '5000'))
    except ValueError:
        PORT = 5000

    app.run(HOST, PORT)