9b4a25799f
Replace fixed ackText with a rule-based AckProvider that picks response templates by message type and intent (translate, summary, rewrite, poster, ppt, mindmap, code, search, schedule). Pure sync, zero I/O, auto-falls back to config.ackText on any error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
709 B
Bash
Executable File
27 lines
709 B
Bash
Executable File
#!/usr/bin/env bash
|
||
# Memind Portal 生产进程(m.tkmind.cn / Plaza API 共用 :8081)
|
||
set -euo pipefail
|
||
|
||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||
cd "$ROOT"
|
||
|
||
if [[ -f "${ROOT}/.env" ]]; then
|
||
set -a
|
||
# shellcheck disable=SC1091
|
||
source "${ROOT}/.env"
|
||
set +a
|
||
fi
|
||
|
||
export NODE_ENV=production
|
||
export H5_PORT="${H5_PORT:-8081}"
|
||
export H5_PUBLIC_BASE_URL="https://m.tkmind.cn"
|
||
export TKMIND_API_TARGET="${TKMIND_API_TARGET_OVERRIDE:-https://127.0.0.1:18006}"
|
||
export TKMIND_API_TARGET_1="${TKMIND_API_TARGET_1_OVERRIDE:-https://127.0.0.1:18007}"
|
||
|
||
NODE_BIN="${NODE_BIN:-/opt/homebrew/opt/node@24/bin/node}"
|
||
if [[ ! -x "${NODE_BIN}" ]]; then
|
||
NODE_BIN="$(command -v node)"
|
||
fi
|
||
|
||
exec "${NODE_BIN}" server.mjs
|