def startApp(): app.run(debug=True) # if __name__ == '__main__': # # app.run(debug=True) # startApp()
def main(): app.run(host=app.config.get('SERVER_IP'), port=app.config.get('SERVER_PORT'), debug=app.config.get('DEBUG'))
from todo import app if __name__ == "__main__": app.run(debug=True, threaded=True)
from todo import app if __name__ == '__main__': app.run(port=4996)
#coding:utf-8 # 2016年5月18日06:51:17 开始开发.... # from todo import app app.run(debug=True) app.secret_key="sssss"
from todo import app if __name__ == "__main__": app.run(debug=True)
from todo import app if __name__ == '__main__': app.run()
"""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")
from todo import app if __name__ == '__main__': app.run(host='0.0.0.0', port=5000, debug=True)
#!flask/bin/python from todo import app app.run()
def run(host='localhost', port=5005): app.run(host=host, port=port)
#!/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")
from todo import app app.run(host='127.0.0.1', port=5000, debug=True)
#!/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)
from todo import app app.run(host='0.0.0.0', port=5000)
#!/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)
import sys from todo import app if __name__ == '__main__': app.run(host='0.0.0.0', debug=True, port=int(8888))
from todo import app if __name__ == "__main__": app.run();
#!/usr/bin/env python from todo import app if __name__ == '__main__': app.run(debug=True, host="0.0.0.0", port=8000) # app.run()
from todo import app app.run(debug=True, host='0.0.0.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")
from todo import app if __name__ == '__main__': app.run(port=3000, debug=True)
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)