Fixes BARAAA-64 DB migration and auth issues: - Update tsconfig.build.json to compile scripts/migrate.ts (was excluded) - Create entrypoint.sh to run migrations before server start - Update Dockerfile to build migrate.ts and use migration entrypoint - Expose postgres port 15432 temporarily for password diagnosis This ensures tables are created before app starts and allows connecting to postgres from host to diagnose 28P01 auth errors. Co-Authored-By: Paperclip <noreply@paperclip.ing>
8 lines
175 B
Bash
8 lines
175 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
echo "[entrypoint] Running database migrations..."
|
|
node dist/scripts/migrate.js
|
|
|
|
echo "[entrypoint] Starting application server..."
|
|
exec node dist/server.js
|