🔄 卡若AI 同步 2026-03-13 23:06 | 更新:火炬、总索引与入口、运营中枢、运营中枢工作台 | 排除 >20MB: 11 个
This commit is contained in:
25
运营中枢/scripts/aiye_im_bridge/start.sh
Executable file
25
运营中枢/scripts/aiye_im_bridge/start.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
# ──────────────────────────────────────────────
|
||||
# 艾叶 IM Bridge 启动脚本
|
||||
# 用法: bash start.sh [端口]
|
||||
# ──────────────────────────────────────────────
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
PORT="${1:-18900}"
|
||||
|
||||
if [ ! -d ".venv" ]; then
|
||||
echo "→ 创建虚拟环境 .venv"
|
||||
python3 -m venv .venv
|
||||
fi
|
||||
|
||||
echo "→ 安装依赖"
|
||||
.venv/bin/pip install -q -r requirements.txt
|
||||
|
||||
if [ ! -f "config/channels.yaml" ]; then
|
||||
echo "→ 初始化配置文件 config/channels.yaml"
|
||||
cp config/channels.example.yaml config/channels.yaml
|
||||
fi
|
||||
|
||||
echo "→ 启动艾叶 IM Bridge (端口 $PORT)"
|
||||
AIYE_PORT="$PORT" .venv/bin/python main.py
|
||||
Reference in New Issue
Block a user