webhook: restart relay-gateway on SHARED/relay_gateway changes, tssbot-api on TSSBOT/web changes
This commit is contained in:
@@ -127,6 +127,24 @@ def pull_and_restart(changed_files: list[str], before: str = '', after: str = ''
|
|||||||
processes_to_restart.append('srebot-api')
|
processes_to_restart.append('srebot-api')
|
||||||
logger.info("API server.js changed, will restart 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 frontend: restart if SREBOT/web/ files changed
|
||||||
web_changed = any(f.startswith('SREBOT/web/') for f in changed_files)
|
web_changed = any(f.startswith('SREBOT/web/') for f in changed_files)
|
||||||
if web_changed:
|
if web_changed:
|
||||||
|
|||||||
Reference in New Issue
Block a user