mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:11:32 +00:00
Make TerminadoMiniServer compatible with an external IOLoop
This commit is contained in:
parent
4873bbf421
commit
6312e22117
@ -30,9 +30,9 @@ class TerminadoMiniServer:
|
|||||||
|
|
||||||
def listen(self):
|
def listen(self):
|
||||||
self.application.listen(self.port)
|
self.application.listen(self.port)
|
||||||
IOLoop.instance().start()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
log.info('Terminado Mini Server listening on {}'.format(tfwenv.TERMINADO_PORT))
|
log.info('Terminado Mini Server listening on {}'.format(tfwenv.TERMINADO_PORT))
|
||||||
TerminadoMiniServer('/terminal', tfwenv.TERMINADO_PORT, tfwenv.TERMINADO_WD, ['bash']).listen()
|
TerminadoMiniServer('/terminal', tfwenv.TERMINADO_PORT, tfwenv.TERMINADO_WD, ['bash']).listen()
|
||||||
|
IOLoop.instance().start()
|
||||||
|
Loading…
Reference in New Issue
Block a user