From 9ab8037342b919025620f78bec5a629725b71b9c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 20:26:59 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/provision-agent/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/supabase/functions/provision-agent/index.ts b/supabase/functions/provision-agent/index.ts index 1159bb2..3e2724c 100644 --- a/supabase/functions/provision-agent/index.ts +++ b/supabase/functions/provision-agent/index.ts @@ -502,6 +502,17 @@ async function handleUpdateExistingService( }); console.log(`[provision-agent:update] variáveis atualizadas (${Object.keys(variables).length})`); + await configureRailwayService({ + token: RAILWAY_API_TOKEN!, + serviceId: railwayServiceId, + environmentId, + projectId, + image: "ghcr.io/domfelipe/hermes-agent-custom:latest", + variables: {}, + startCommand: HERMES_START_COMMAND, + }); + console.log(`[provision-agent:update] imagem/start command reconciliados`); + await deployRailwayService({ token: RAILWAY_API_TOKEN!, serviceId: railwayServiceId,