Files
crm-ai/scripts/serve-web.sh

7 lines
280 B
Bash
Executable File

#!/usr/bin/env bash
# 仅本地预览:静态测试页(widget JWT 演示);测试/生产不需要
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/../web"
echo "http://localhost:${WEB_PORT:-8088}/demo.html"
exec python3 -m http.server "${WEB_PORT:-8088}" --bind 0.0.0.0