cubicweb/wsgi/tnd.py
changeset 12001 89611a994572
parent 11767 432f87a63057
equal deleted inserted replaced
12000:1b9fd8bda1cd 12001:89611a994572
    38     container = wsgi.WSGIContainer(app)
    38     container = wsgi.WSGIContainer(app)
    39     http_server = httpserver.HTTPServer(container)
    39     http_server = httpserver.HTTPServer(container)
    40     http_server.listen(port, interface)
    40     http_server.listen(port, interface)
    41     repo = app.appli.repo
    41     repo = app.appli.repo
    42     try:
    42     try:
    43         repo.start_looping_tasks()
       
    44         LOGGER.info('starting http server on %s', config['base-url'])
    43         LOGGER.info('starting http server on %s', config['base-url'])
    45         ioloop.IOLoop.instance().start()
    44         ioloop.IOLoop.instance().start()
    46     finally:
    45     finally:
    47         repo.shutdown()
    46         repo.shutdown()