<!-- 什么时候该用 Demox，什么时候不该用 | Demox -->
Source: https://www.demox.site/when-to-use-demox

适用场景 · 更新于 2026-09-14 · Demox 团队

# 什么时候该用 Demox，什么时候不该用？

**直接答案：**Demox 适合两类产物。一类是静态网站：单个 HTML、根目录含 index.html 的 dist/build/ZIP，以及 PDF、Markdown、TXT、DOCX。另一类是 Node 接口：改成 handler(request, env) 后用 demox functions push 挂到同一站点。Python、PHP、Java、Express listen，以及必须直连私密数据库或常驻进程的服务，不适合直接上传。Demox 不声称替代完整 CI/CD 平台。

## 按你手里的产物判断

| 你手里有什么 | 适合 Demox？ | 怎么发 |
| --- | --- | --- |
| AI 生成的单个 HTML | 适合 | 网页上传或 demox deploy |
| React / Vue / Vite dist | 适合 | demox deploy ./dist |
| PDF、Markdown、DOCX | 适合 | 网页上传或 demox deploy |
| Node handler(request, env) | 适合 | demox functions push |
| Express listen | 不适合直接上传 | 先改成 handler |
| Python / PHP / Java | 目前不适合 | 独立后端 |

## Demox 自己也是这样发布的

主站是平台上的一个普通站点。页面走 demox deploy，业务后端走 demox functions push。详见 [Demox 怎样用自己部署自己](https://www.demox.site/how-demox-hosts-itself)。发布失败对照 [排错页](https://www.demox.site/deploy-troubleshooting)。
