Files
teamwallet/myteamwallet_backend/docker-entrypoint.sh
Bastian Wagner 4ef35b3755 migration
2026-07-31 21:20:16 +02:00

13 lines
437 B
Bash

#!/usr/bin/env bash
set -e
echo "Waiting for database at ${DATABASE_HOST}:${DATABASE_PORT}..."
bash ./wait-for-it.sh "${DATABASE_HOST}:${DATABASE_PORT}" -t 60
# No automatic migration:run here: the checked-in TypeORM migrations are
# Postgres-specific and fail against the real MySQL database. Schema is kept
# in sync via DATABASE_SYNCHRONIZE, matching current production behavior.
echo "Starting application..."
exec node dist/main