From ac002580b1200d16446a5eef61da9b073cfc08c9 Mon Sep 17 00:00:00 2001 From: Paperclip FoundingEngineer Date: Sat, 2 May 2026 12:08:02 +0000 Subject: [PATCH] fix(deploy): correct entrypoint paths and domain for v2 deployment - Fix entrypoint.sh to use dist/src/server.js (matches TypeScript rootDir structure) - Update compose.coolify.yml domain to agenthub-v2.barodine.net (matches BARAAA-65 spec) - Update CORS default origin to match new domain Co-Authored-By: Claude Sonnet 4.5 --- compose.coolify.yml | 4 ++-- scripts/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compose.coolify.yml b/compose.coolify.yml index 07046b4..ee3132b 100644 --- a/compose.coolify.yml +++ b/compose.coolify.yml @@ -16,7 +16,7 @@ services: REDIS_HOST: ${REDIS_HOST:-redis} REDIS_PORT: ${REDIS_PORT:-6379} JWT_SECRET: ${JWT_SECRET} - ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub.barodine.net} + ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub-v2.barodine.net} networks: - default - coolify @@ -32,7 +32,7 @@ services: - 'coolify.type=application' - 'traefik.enable=true' - 'traefik.docker.network=coolify' - - 'traefik.http.routers.agenthub.rule=Host(`agenthub.barodine.net`)' + - 'traefik.http.routers.agenthub.rule=Host(`agenthub-v2.barodine.net`)' - 'traefik.http.routers.agenthub.entrypoints=websecure' - 'traefik.http.routers.agenthub.tls=true' - 'traefik.http.routers.agenthub.tls.certresolver=letsencrypt' diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index d575144..bbd14dd 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -5,4 +5,4 @@ echo "[entrypoint] Running database migrations..." node dist/scripts/migrate.js echo "[entrypoint] Starting application server..." -exec node dist/server.js +exec node dist/src/server.js