WARNING: This is a development server. Do not use it in a production deployment. Falsk WSGI
两种方法:
方法一:
from gevent import pywsgi
if __name__ == '__main__':
server = pywsgi.WSGIServer(('0.0.0.0', 5000), app)
server.serve_forever()
方法二:
from wsgiref.simple_server import make_server
if __name__ == '__main__':
server = make_server('', 64570, app)
server.serve_forever()
注意:本文归作者所有,未经作者允许,不得转载
原文地址: http://blog.wsmee.com/post/79
版权声明:非商用-非衍生-保持署名| Creative Commons BY-NC-ND 3.0