app.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:coroutx 作者: neo1218 项目源码 文件源码
def firing(self, host='localhost', port=8090, **options):
        # run coroutx app on gevent wsgiserver
        from gevent.wsgi import WSGIServer
        if 'debug' in options:
            self.debug = options.pop('debug')
            if self.debug:
                from werkzeug.debug import DebuggedApplication
                app = DebuggedApplication(self, evalex=True)
        else:
            _app = self
        print """coroutx app running on {%s => %s}\n""" % (host, port)
        WSGIServer((host, port), _app).serve_forever()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号