#!/bin/bashset -eecho "============================================"echo " DeepCode - AI Research Engine (Docker)"echo "============================================"# ------ Validate configuration ------if [ ! -f "mcp_agent.config.yaml" ]; thenecho "⚠️ mcp_agent.config.yaml not found, using default config"fiif [ ! -f "mcp_agent.secrets.yaml" ]; thenecho ""echo "❌ ERROR: mcp_agent.secrets.yaml not found!"echo ""echo "Please mount your secrets file:"echo " docker run -v ./mcp_agent.secrets.yaml:/app/mcp_agent.secrets.yaml ..."echo ""echo "Or use docker-compose with the provided template."echo ""exit 1fi# ------ Ensure directories exist ------mkdir -p deepcode_lab uploads logs# ------ CLI mode: launch interactive CLI ------if [ "1ドル" = "cli" ]; thenshiftecho ""echo "🖥️ Starting DeepCode CLI..."echo "============================================"echo ""exec python cli/main_cli.py "$@"fi# ------ Web mode (default): start backend + frontend ------echo ""echo "🚀 Starting DeepCode..."echo " API: http://localhost:${DEEPCODE_PORT:-8000}"echo " Docs: http://localhost:${DEEPCODE_PORT:-8000}/docs"echo "============================================"echo ""exec python -m uvicorn new_ui.backend.main:app \--host "${DEEPCODE_HOST:-0.0.0.0}" \--port "${DEEPCODE_PORT:-8000}" \--workers 1 \--log-level info
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。