Skip to content

Instantly share code, notes, and snippets.

@didip
Created July 9, 2010 03:07
Show Gist options
  • Save didip/468976 to your computer and use it in GitHub Desktop.
Save didip/468976 to your computer and use it in GitHub Desktop.
from paste.deploy import appconfig
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from your_app.config.middleware import make_app
port = 5000
config = appconfig("config:%s" % "/your/app/development.ini")
app = make_app(config.global_conf, **config.local_conf)
# Start the tornado IO loop
http_server = HTTPServer(WSGIContainer(app))
http_server.listen(port)
IOLoop.instance().start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment