11 lines
274 B
Bash
11 lines
274 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# 启动前确保数据库表已就绪(SQLite/Postgres 均适用)。
|
|
# 幂等:已存在则无操作。
|
|
echo "[entrypoint] syncing database schema..."
|
|
npx prisma db push --skip-generate
|
|
|
|
echo "[entrypoint] starting daily-bot-nest..."
|
|
exec node dist/main.js
|