Пример #1
0
def runserver():
    api.app = app
    app.run()
Пример #2
0
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
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
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)