From 620f6aa6430d7ab670a75f28fa86dcdd97aed61a Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Fri, 23 Aug 2019 16:23:21 +0200 Subject: [PATCH] Create handler for deploying in the IDE --- solvable/src/event_handler_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 363fae0..53acd3c 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -5,14 +5,13 @@ from tornado.ioloop import IOLoop from tfw.fsm import YamlFSM from tfw.event_handlers import FSMAwareEventHandler, ControlEventHandler -from tfw.components.ide import IdeHandler +from tfw.components.ide import IdeHandler, DeployHandler from tfw.components.terminal import TerminalHandler from tfw.components.frontend import FrontendProxyHandler, ConsoleLogsHandler, MessageQueueHandler from tfw.components.process_management import ProcessHandler, ProcessLogHandler from tfw.components.fsm import FSMHandler from tfw.main import EventHandlerFactory, setup_logger, setup_signal_handlers from tfw.config import TFWENV, TAOENV -from tfw.internals.networking import Intent from custom_handlers import CenatorHandler, TestCommandsHandler, messageFSMStepsHandler @@ -38,6 +37,7 @@ def main(): ide_eh = eh_factory.build(IdeHandler( patterns=['/home/user/workdir/*', '/srv/webservice/user_ops.py'] ), event_handler_type=ControlEventHandler) + deploy_eh = eh_factory.build(DeployHandler(), event_handler_type=ControlEventHandler) # Web shell backend terminal_eh = eh_factory.build(TerminalHandler( port=TFWENV.TERMINADO_PORT,