mirror of
https://github.com/jlengrand/ShowMeYourBigSatellite.git
synced 2026-03-10 08:41:21 +00:00
Adds freaking tornado file for webserver deployment
This commit is contained in:
8
mytornado.py
Normal file
8
mytornado.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
from tornado.wsgi import WSGIContainer
|
||||||
|
from tornado.httpserver import HTTPServer
|
||||||
|
from tornado.ioloop import IOLoop
|
||||||
|
from main import app
|
||||||
|
|
||||||
|
http_server = HTTPServer(WSGIContainer(app))
|
||||||
|
http_server.listen(5000)
|
||||||
|
IOLoop.instance().start()
|
||||||
Reference in New Issue
Block a user