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