webhook: restart relay-gateway on SHARED/relay_gateway changes, tssbot-api on TSSBOT/web changes

This commit is contained in:
FURRO404
2026-06-28 07:13:03 -07:00
parent 0b3c6f478e
commit a58a4e5c42
+18
View File
@@ -127,6 +127,24 @@ def pull_and_restart(changed_files: list[str], before: str = '', after: str = ''
processes_to_restart.append('srebot-api')
logger.info("API server.js changed, will restart srebot-api")
# Relay gateway: restart if SHARED/relay_gateway/ files changed
relay_gateway_changed = any(
f.startswith('SHARED/relay_gateway/')
for f in changed_files
)
if relay_gateway_changed:
processes_to_restart.append('relay-gateway')
logger.info("Relay gateway files changed, will restart relay-gateway")
# TSSBOT API: restart if TSSBOT/web/ files changed
tssbot_api_changed = any(
f.startswith('TSSBOT/web/')
for f in changed_files
)
if tssbot_api_changed:
processes_to_restart.append('tssbot-api')
logger.info("TSSBOT API files changed, will restart tssbot-api")
# Web frontend: restart if SREBOT/web/ files changed
web_changed = any(f.startswith('SREBOT/web/') for f in changed_files)
if web_changed: