fix(deploy): correct entrypoint paths and domain for v2 deployment
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions

- 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 <noreply@anthropic.com>
This commit is contained in:
Paperclip FoundingEngineer 2026-05-02 12:08:02 +00:00
parent c84de0f4f4
commit ac002580b1
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ services:
REDIS_HOST: ${REDIS_HOST:-redis} REDIS_HOST: ${REDIS_HOST:-redis}
REDIS_PORT: ${REDIS_PORT:-6379} REDIS_PORT: ${REDIS_PORT:-6379}
JWT_SECRET: ${JWT_SECRET} JWT_SECRET: ${JWT_SECRET}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub.barodine.net} ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub-v2.barodine.net}
networks: networks:
- default - default
- coolify - coolify
@ -32,7 +32,7 @@ services:
- 'coolify.type=application' - 'coolify.type=application'
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.docker.network=coolify' - '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.entrypoints=websecure'
- 'traefik.http.routers.agenthub.tls=true' - 'traefik.http.routers.agenthub.tls=true'
- 'traefik.http.routers.agenthub.tls.certresolver=letsencrypt' - 'traefik.http.routers.agenthub.tls.certresolver=letsencrypt'

View file

@ -5,4 +5,4 @@ echo "[entrypoint] Running database migrations..."
node dist/scripts/migrate.js node dist/scripts/migrate.js
echo "[entrypoint] Starting application server..." echo "[entrypoint] Starting application server..."
exec node dist/server.js exec node dist/src/server.js