mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2025-07-14 00:26:24 +00:00
Simplify MessageSender, IDE and terminal handler
This commit is contained in:
committed by
therealkrispet
parent
a1ad0e6356
commit
e366a2652b
@ -40,15 +40,13 @@ def main():
|
||||
))
|
||||
# Web IDE backend
|
||||
ide_eh = eh_factory.build(IdeHandler(
|
||||
allowed_directories=[TFWENV.IDE_WD, TFWENV.WEBSERVICE_DIR],
|
||||
directory=TFWENV.IDE_WD,
|
||||
exclude=['*.pyc']
|
||||
patterns=['/home/user/workdir/*', '/srv/webservice/user_ops.py']
|
||||
))
|
||||
# Web shell backend
|
||||
terminal_eh = eh_factory.build(TerminalHandler(
|
||||
port=TFWENV.TERMINADO_PORT,
|
||||
user=TAOENV.USER,
|
||||
workind_directory=TFWENV.TERMINADO_WD,
|
||||
working_directory=TFWENV.TERMINADO_WD,
|
||||
histfile=TFWENV.HISTFILE
|
||||
))
|
||||
# Handles 'deploy' button clicks
|
||||
@ -63,13 +61,13 @@ def main():
|
||||
log_tail=2000
|
||||
))
|
||||
# Manages filesystem snapshots of directories
|
||||
snapshot_eh = eh_factory.build(SnapshotHandler(
|
||||
directories=[
|
||||
TFWENV.IDE_WD,
|
||||
TFWENV.WEBSERVICE_DIR
|
||||
],
|
||||
snapshots_dir=TFWENV.SNAPSHOTS_DIR
|
||||
))
|
||||
#snapshot_eh = eh_factory.build(SnapshotHandler(
|
||||
# directories=[
|
||||
# TFWENV.IDE_WD,
|
||||
# TFWENV.WEBSERVICE_DIR
|
||||
# ],
|
||||
# snapshots_dir=TFWENV.SNAPSHOTS_DIR
|
||||
#))
|
||||
# Proxies frontend API calls to frontend
|
||||
frontend_eh = eh_factory.build(FrontendHandler())
|
||||
|
||||
|
Reference in New Issue
Block a user