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 <noreply@anthropic.com>
This commit is contained in:
parent
c84de0f4f4
commit
ac002580b1
2 changed files with 3 additions and 3 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue