Exemple #1
0
from route import app

app.run(debug=True, port=8085)
Exemple #2
0
from flask_script import Manager
from route import app

manager = Manager(app)

if __name__ == "__main__":
    app.run(debug=True, port=8888)
Exemple #3
0
from route import app 

if __name__ == "__main__":
    app.run(debug=True)
Exemple #4
0
from route import app

app.run(host = '0.0.0.0', port = 80, threaded = True)
Exemple #5
0
# -*- 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)
Exemple #6
0
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'))
Exemple #8
0
from route import app

if __name__ == '__main__':
    app.run()