Skip to content

Commit 437015b

Browse files
Chapter 11 - Recipe 'Deploying with Tornado'
1 parent dec96a8 commit 437015b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: tornado_server.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from tornado.wsgi import WSGIContainer
2+
from tornado.httpserver import HTTPServer
3+
from tornado.ioloop import IOLoop
4+
from my_app import app
5+
6+
http_server = HTTPServer(WSGIContainer(app))
7+
http_server.listen(8000)
8+
IOLoop.instance().start()

0 commit comments

Comments
 (0)