第一方案例 · 更新于 2026-09-14 · Demox 团队
Demox 怎样用自己部署自己?
直接答案:主站是平台上的一个普通站点。前端 npm run build 后执行 demox deploy ./dist。鉴权、站点、MCP 和证书续期用 demox functions push 按 slug 更新。函数环境变量按函数设置;首次上传创建 v1,production 和 develop 指向 v1,之后再上传不改别名。本页不提供访问量或可用性数字。
发布时实际执行的命令
npm run build
demox deploy ./dist --id EPX2UU43
demox functions push ./scf-deploy-packages/auth-api --id EPX2UU43 --slug auth
demox functions push ./scf-code/website-api --id EPX2UU43 --slug website
demox functions push ./scf-code/mcp-api --id EPX2UU43 --slug mcp
demox functions push ./scf-code/cert-renew --id EPX2UU43 --slug cert-renew这个案例能证明什么
能证明静态页面和 Node handler 可以挂在同一站点,且 Demox 自己走这条路径。不能证明任意 Express 或 Python 应用可以零改动迁入。完整边界见 适用场景。