baseimage-tutorial-framework/supervisor/tfw_server.py

12 lines
243 B
Python
Raw Normal View History

2018-06-29 20:53:44 +00:00
from tornado.ioloop import IOLoop
2019-08-15 15:03:15 +00:00
from tfw.main import TFWServer, setup_logger, setup_signal_handlers
2018-06-29 20:53:44 +00:00
if __name__ == '__main__':
2019-08-15 15:03:15 +00:00
setup_logger(__file__)
TFWServer().listen()
2019-07-24 14:47:03 +00:00
setup_signal_handlers()
2018-06-29 20:53:44 +00:00
IOLoop.instance().start()