Menu

#21 Add support for other web-servers

New
nobody
None
Medium
Enhancement
2014-05-26
2014-05-26
No

Support as default other web-servers such as Tornado (and/or Gunicorn). Tornado is a web-server written completely in python, it is required by ipython-notebook so it is often already present on computer, and most important should be pretty easy to configure. I've tried adding a python file: run_server.py with:

:::python
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from application import application as app

http_server = HTTPServer(WSGIContainer(app))
http_server.listen(80)
IOLoop.instance().start()

But it is loading only the css, so far... However the idea is that the user have to run only:

::: shell
python2 run_server.py

Avoiding the Apache configuration dramas.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB