mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 21:35:12 +00:00
Implement watching static files
This commit is contained in:
@ -7,6 +7,7 @@ from tornado.web import Application
|
||||
from tornado.ioloop import IOLoop
|
||||
|
||||
from config import WEB_PORT
|
||||
import debug
|
||||
from handlers import MainHandler, ZMQWebSocketHandler, LoginWebappHandler
|
||||
import ui_modules
|
||||
|
||||
@ -23,6 +24,7 @@ if __name__ == '__main__':
|
||||
ui_modules=ui_modules,
|
||||
autoreload=True
|
||||
)
|
||||
|
||||
application.listen(WEB_PORT)
|
||||
logging.getLogger().setLevel(logging.DEBUG)
|
||||
logging.debug('Python version: {}'.format(sys.version[:5]))
|
||||
@ -30,4 +32,5 @@ if __name__ == '__main__':
|
||||
logging.debug('ZeroMQ version: {}'.format(zmq.zmq_version()))
|
||||
logging.debug('PyZMQ version: {}'.format(zmq.pyzmq_version()))
|
||||
logging.info('Tornado application listening on port {}'.format(WEB_PORT))
|
||||
debug.watch_static_files()
|
||||
IOLoop.instance().start()
|
||||
|
Reference in New Issue
Block a user