[文档] 代码-文档一致性整理 - README 同步 v3 全量(2.1网络/3模块表/4表结构/5 API含people-clips/6.1历史标注/8部署systemd+Vue3+config/12进度); docs/DEPLOY.md 重写为 v3; 删除过时 start_ui.sh(Streamlit); start_edge.sh 注明 systemd 为准; 补提交 test_motion_notifier
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
# FAM-Edge 启动脚本 (Oracle 端)
|
||||
# FAM-Edge 启动脚本 (Oracle 端) —— 仅本地调试用
|
||||
# 生产环境由 systemd fam-edge.service 守护(Restart=always,/opt/fam-edge/venv/bin/gunicorn
|
||||
# -w 1 --threads 4 --timeout 1800);部署后请用 `sudo systemctl restart fam-edge`。
|
||||
# 用法: ./scripts/start_edge.sh
|
||||
set -e
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
# FAM-UI 启动脚本 (NAS 端)
|
||||
# 用法: ./scripts/start_ui.sh
|
||||
set -e
|
||||
|
||||
APP_DIR="$(cd "$(dirname "$0")/.." && pwd)/fam-ui"
|
||||
CONFIG_FILE="$APP_DIR/config/config.yaml"
|
||||
|
||||
if [ ! -f "$CONFIG_FILE" ]; then
|
||||
echo "错误: 配置文件不存在: $CONFIG_FILE"
|
||||
echo "请复制 config.yaml.example 为 config.yaml 并修改实际值"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$APP_DIR"
|
||||
|
||||
# 注入项目级 .env(ORACLE_SYNC_TOKEN 等),供 config.yaml ${VAR} 解析
|
||||
if [ -f "$(dirname "$APP_DIR")/.env" ]; then
|
||||
source "$(dirname "$APP_DIR")/.env"
|
||||
fi
|
||||
|
||||
# 检查虚拟环境
|
||||
if [ -d "venv" ]; then
|
||||
source venv/bin/activate
|
||||
fi
|
||||
|
||||
echo "启动 FAM-UI Streamlit (端口 8501)..."
|
||||
exec streamlit run src/app.py --server.port 8501 --server.address 0.0.0.0
|
||||
Reference in New Issue
Block a user