mirror of
https://github.com/remnawave/backend.git
synced 2026-08-28 12:24:48 +00:00
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
22 lines
No EOL
447 B
Bash
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 "$@" |