#!/usr/bin/python
# -*- coding: utf-8 -*-


import gevent
import tornado.wsgi
from gevent import pywsgi

import app


ADDRESS = "127.0.0.1"
PORT = 8080


def main():
    """ 这里用 gevent 的 wsgi 来跑 tornado 写的 application.

    """
    application = app.get()
    wsgi_app = tornado.wsgi.WSGIAdapter(application)

    server = pywsgi.WSGIServer(
        (ADDRESS, PORT), wsgi_app
    )
    server.serve_forever()


if __name__ == '__main__':
    main()

3d9004eb67fd5ae44ce2ef834942d6e3e15e38f2
<mask token>


def main():
    """ 这里用 gevent 的 wsgi 来跑 tornado 写的 application.

    """
    application = app.get()
    wsgi_app = tornado.wsgi.WSGIAdapter(application)
    server = pywsgi.WSGIServer((ADDRESS, PORT), wsgi_app)
    server.serve_forever()


<mask token>

<mask token>


def main():
    """ 这里用 gevent 的 wsgi 来跑 tornado 写的 application.

    """
    application = app.get()
    wsgi_app = tornado.wsgi.WSGIAdapter(application)
    server = pywsgi.WSGIServer((ADDRESS, PORT), wsgi_app)
    server.serve_forever()


if __name__ == '__main__':
    main()

<mask token>
ADDRESS = '127.0.0.1'
PORT = 8080


def main():
    """ 这里用 gevent 的 wsgi 来跑 tornado 写的 application.

    """
    application = app.get()
    wsgi_app = tornado.wsgi.WSGIAdapter(application)
    server = pywsgi.WSGIServer((ADDRESS, PORT), wsgi_app)
    server.serve_forever()


if __name__ == '__main__':
    main()

import gevent
import tornado.wsgi
from gevent import pywsgi
import app
ADDRESS = '127.0.0.1'
PORT = 8080


def main():
    """ 这里用 gevent 的 wsgi 来跑 tornado 写的 application.

    """
    application = app.get()
    wsgi_app = tornado.wsgi.WSGIAdapter(application)
    server = pywsgi.WSGIServer((ADDRESS, PORT), wsgi_app)
    server.serve_forever()


if __name__ == '__main__':
    main()

#!/usr/bin/python
# -*- coding: utf-8 -*-


import gevent
import tornado.wsgi
from gevent import pywsgi

import app


ADDRESS = "127.0.0.1"
PORT = 8080


def main():
    """ 这里用 gevent 的 wsgi 来跑 tornado 写的 application.

    """
    application = app.get()
    wsgi_app = tornado.wsgi.WSGIAdapter(application)

    server = pywsgi.WSGIServer(
        (ADDRESS, PORT), wsgi_app
    )
    server.serve_forever()


if __name__ == '__main__':
    main()
