def runserver(): api.app = app app.run()
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)
from proj import app if __name__ == "__main__": app.run(debug=True)
from proj import app if __name__ == '__main__': #app.run(debug=True) app.run()
""" 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)
from proj import app app.run(debug=True)
from proj import app if __name__ == "__main__": # app.run(host='0.0.0.0', port=int('5000')) app.run(port=int('5000'))