chore: baseline — ORM migration + systemd deploy + MCP server + daily check
- ORM migration: models/ops 重构 - deploy: 标准化 systemd timer/service 部署体系 - MCP server: 5 个只读工具(任务/状态/数据集) - daily check: 数据一致性巡检 - watch: task_watch 后台监控 - kline_daily: 麦蕊优先,时间门禁15:00 - 删除: task_industry_sector, task_sector_features
This commit is contained in:
@@ -10,6 +10,15 @@
|
||||
|
||||
set -eu
|
||||
|
||||
RUNTIME_MODE="${RUNTIME_MODE:-docker}"
|
||||
|
||||
if [ "$RUNTIME_MODE" != "docker" ]; then
|
||||
echo "[service] ❌ ERROR: service_run.sh 是 Docker 入口,只在 RUNTIME_MODE=docker 时可用。" >&2
|
||||
echo "[service] 当前 RUNTIME_MODE=$RUNTIME_MODE" >&2
|
||||
echo "[service] Linux 宿主机部署请使用 systemd timer/service,不要运行此脚本。" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 等 PG 就绪(避免 race:market_sync 比 postgres 早启)
|
||||
if [ -n "${PG_HOST:-}" ]; then
|
||||
echo "[service] wait for PG ${PG_HOST}:${PG_PORT:-5432}..."
|
||||
|
||||
Reference in New Issue
Block a user