Remnawave_backend/docker-entrypoint.sh
kastov 0f8b639b6c
Some checks are pending
Build Dev / Send TG message (push) Waiting to run
Build Dev / Build linux/amd64 (push) Waiting to run
Build Dev / Send TG message-1 (push) Blocked by required conditions
Build Dev / notify-on-error (push) Blocked by required conditions
Deploy backend contracts / build (push) Waiting to run
Deploy backend contracts / Send Telegram message (push) Blocked by required conditions
Deploy backend contracts / notify-on-error (push) Blocked by required conditions
refactor: remove temporary warning from docker-entrypoint
2026-07-31 22:45:23 +03:00

22 lines
No EOL
447 B
Bash

#!/bin/sh
echo "Starting entrypoint script..."
PRISMA="/opt/app/node_modules/.bin/prisma"
echo "Migrating database..."
if ! "$PRISMA" migrate deploy; then
echo "Database migration failed! Exiting container..."
exit 1
fi
echo "Migrations deployed successfully!"
echo "Seeding database..."
if ! "$PRISMA" db seed; then
echo "Database seeding failed! Exiting container..."
exit 1
fi
echo "Entrypoint script completed."
exec "$@"