smithery.ai

qcc-deploy

Use for deployment, test server connection, and Docker operations in qcc_plus project

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,172 B
  • docs SUMMARY.md 103 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

QCC Plus 部署指南

服务器信息

测试服务器

  • IP: 43.156.77.170
  • 用户: ubuntu
  • SSH 密钥: ~/.ssh/qcc_deploy
  • 端口: 8001
  • 容器名: qcctestproxy

生产服务器

  • IP: 43.156.77.170
  • 用户: ubuntu
  • SSH 密钥: ~/.ssh/qcc_deploy
  • 端口: 8000
  • 容器名: qccprodproxy

自动部署到测试环境

# 1. 确认在 test 分支
git checkout test

# 2. 提交代码
git add .
git commit -m "fix: 描述修复内容"

# 3. 推送触发自动部署
git push origin test

# GitHub Actions 会自动:
# - 构建前端
# - 构建 Docker 镜像
# - 部署到测试服务器(端口 8001)
# - 执行健康检查

快速操作命令

连接服务器

ssh -i ~/.ssh/qcc_deploy [email protected]

查看日志

# 测试环境
ssh -i ~/.ssh/qcc_deploy [email protected] "docker logs qcc_test_proxy -f"

# 生产环境
ssh -i ~/.ssh/qcc_deploy [email protected] "docker logs qcc_prod_proxy -f"

查看容器状态

ssh -i ~/.ssh/qcc_deploy [email protected] "docker ps -a"

重启服务

ssh -i ~/.ssh/qcc_deploy [email protected] "docker restart qcc_test_proxy"

进入容器

ssh -i ~/.ssh/qcc_deploy [email protected] "docker exec -it qcc_test_proxy sh"

查看最近错误日志

ssh -i ~/.ssh/qcc_deploy [email protected] "docker logs qcc_test_proxy --tail 100 2>&1 | grep -i 'error\|failed\|panic'"

快速启动方式

npm 全局安装(推荐)

npm install -g @qccplus/cli
qccplus start

Docker 部署

docker compose up -d

从源码运行

UPSTREAM_BASE_URL=https://api.anthropic.com \
UPSTREAM_API_KEY=sk-ant-your-key \
go run ./cmd/cccli proxy

默认凭证(仅内存模式)

类型 默认值
管理员登录 admin / admin123
默认账号 default / default123
管理界面 http://localhost:8000/admin

安全警告: 生产环境必须修改默认密码与密钥!

环境变量速查

变量名 说明 默认值
LISTEN_ADDR 代理监听地址 :8000
UPSTREAMBASEURL 上游 API 地址 https://api.anthropic.com
UPSTREAMAPIKEY 默认上游 API Key -
PROXYRETRYMAX 重试次数 3
PROXYFAILTHRESHOLD 失败阈值 3
PROXYHEALTHINTERVAL_SEC 探活间隔(秒) 30
PROXYMYSQLDSN MySQL 连接 -
ADMINAPIKEY 管理员密钥 admin

部署架构

本地开发环境
    ↓ git push origin test
GitHub (test 分支)
    ↓ GitHub Actions 触发
测试服务器 (43.156.77.170:8001)
    ├── 拉取代码
    ├── 构建镜像
    ├── 重启容器
    └── 健康检查

安全提醒

  • ✅ 使用 SSH 密钥而非密码认证
  • ⚠️ 定期更换 SSH 密钥
  • ⚠️ 不要将服务器 IP 硬编码到公开代码中
  • ⚠️ 使用环境变量管理敏感配置