Created
July 9, 2010 03:07
-
-
Save didip/468976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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