from route import app app.run(debug=True, port=8085)
from flask_script import Manager from route import app manager = Manager(app) if __name__ == "__main__": app.run(debug=True, port=8888)
from route import app if __name__ == "__main__": app.run(debug=True)
from route import app app.run(host = '0.0.0.0', port = 80, threaded = True)
# -*- coding:utf-8 -*- from conf import server from route import app # # @app.route('/mp/msg', methods=['POST']) # def msg_handle(): # print request.data # return ''' # <xml> # <ToUserName><![CDATA[粉丝号]]></ToUserName> # <FromUserName><![CDATA[公众号]]></FromUserName> # <CreateTime>1460541339</CreateTime> # <MsgType><![CDATA[text]]></MsgType> # <Content><![CDATA[test]]></Content> # </xml> # ''' if __name__ == '__main__': app.run(host=server.IP, port=server.PORT, debug=True, threaded=True)
from route import app if __name__ == '__main__': app.run(host='0.0.0.0')
from route import app import os if __name__ == '__main__': app.run(host=os.getenv('FLASK_RUN_HOST'), port=os.getenv('FLASK_RUN_PORT'))
from route import app if __name__ == '__main__': app.run()