代码提交

This commit is contained in:
董宏凯 committed 2026-09-06 20:25:14 +08:00
1 parent 5e953c9fcb
commit bf42a48fcc
16 files changed
+716 -1560

No files matched your search

+3 -1
View File
@@ -15,7 +15,9 @@ FRONTEND_PORT="${FRONTEND_PORT:-5174}"
detect_host_ip() {
if command -v hostname >/dev/null 2>&1; then
hostname -I 2>/dev/null | awk '{print $1}'
# `hostname -I` is unsupported on Windows Git Bash; `|| true` keeps the
# pipefail-safe fallback (HOST_IP then defaults to 127.0.0.1 below).
hostname -I 2>/dev/null | awk '{print $1}' || true
fi
}
+2 -1
View File
@@ -46,7 +46,8 @@ if [[ "${BACKEND_INSTALL_DEPS}" != "0" ]]; then
fi
fi
setsid bash -c '
# nohup instead of setsid: setsid does not exist on Windows Git Bash.
nohup bash -c '
cd "$0" || exit 1
exec env \
GATEWAY_CORS_ORIGINS="$1" \
+2 -1
View File
@@ -17,7 +17,8 @@ rm -f "${PID_FILE}"
echo "Starting frontend..."
echo "Log: ${LOG_FILE}"
setsid bash -c '
# nohup instead of setsid: setsid does not exist on Windows Git Bash.
nohup bash -c '
cd "$0" || exit 1
exec env \
VITE_BACKEND_BASE_URL="$1" \