示例#1
0
def runserver():
    api.app = app
    app.run()
示例#2
0
文件: main.py 项目: GoogleJump/ninja
from proj import app

# start a sever if the program is being run on its own (not being imported from another module)
# set debug mode to true so that the server reloads itself on code changes
# make the server publicly available to users on the network

if __name__ == '__main__':
  app.debug = True
  app.run(host='localhost', port=4567)
示例#3
0
from proj import app

if __name__ == "__main__":
    app.run(debug=True)
示例#4
0
from proj import app
if __name__ == '__main__':
    #app.run(debug=True)
    app.run()
示例#5
0
"""
Run Flask's bundled web server

"""
from proj import app
import config

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=config.PORT)
示例#6
0
文件: run.py 项目: joelha/FlaskProj
from proj import app
app.run(debug=True)
示例#7
0
from proj import app

if __name__ == "__main__":
    # app.run(host='0.0.0.0', port=int('5000'))
    app.run(port=int('5000'))
示例#8
0
文件: main.py 项目: GoogleJump/ninja
from proj import app

# start a sever if the program is being run on its own (not being imported from another module)
# set debug mode to true so that the server reloads itself on code changes
# make the server publicly available to users on the network

if __name__ == '__main__':
    app.debug = True
    app.run(host='localhost', port=4567)