Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,25 @@ You should disable Pretty URLs in the "Site Configuration" → "Build & Deploy"
## CloudRay

See [Deploy Your VuePress Site With CloudRay](https://cloudray.io/articles/how-to-deploy-your-vuepress-site)

## DeployHQ

[DeployHQ](https://www.deployhq.com) is a Git-based deployment platform that builds your VuePress site and transfers the output to your own server over SSH/SFTP/FTP, or to S3, Azure Blob, or Rackspace Cloud Files. It supports build pipelines, atomic releases, one-click rollback, and multiple environments (e.g. staging and production) mapped to different branches of your repository.

1. [Sign up for DeployHQ](https://www.deployhq.com/signup) and create a new project, connecting it to your GitHub, GitLab, or Bitbucket repository that contains your VuePress site.

2. Add a build pipeline command so DeployHQ builds your site before transferring it:

```bash
pnpm install --frozen-lockfile && pnpm docs:build
```

3. Set the build output directory to `docs/.vuepress/dist`. DeployHQ will only transfer files from this directory to your server.

4. Add a server in your project settings (SSH/SFTP/FTP, S3, Azure Blob, or Rackspace Cloud Files), map it to the branch you want to deploy from (for example `main` for production), and set the deployment path to your web server's document root.

5. Trigger a deployment manually, or enable automatic deployments so every push to the mapped branch is built and shipped automatically.

::: tip
Please refer to the [DeployHQ VuePress deployment guide](https://www.deployhq.com/guides/vuepress) for more details.
:::
22 changes: 22 additions & 0 deletions docs/zh/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,28 @@ heroku login

请查看 [Deploy Your VuePress Site With CloudRay](https://cloudray.io/articles/how-to-deploy-your-vuepress-site) 。

## DeployHQ

[DeployHQ](https://www.deployhq.com) 是一个基于 Git 的部署平台,可以构建你的 VuePress 站点,并通过 SSH/SFTP/FTP 将构建产物传输到你自己的服务器,也支持 S3、Azure Blob 或 Rackspace Cloud Files。它支持构建流水线、原子发布、一键回滚,以及映射到仓库不同分支的多环境(例如 staging 和 production)。

1. [注册 DeployHQ 账号](https://www.deployhq.com/signup) 并创建一个新项目,关联到包含你 VuePress 站点的 GitHub、GitLab 或 Bitbucket 仓库。

2. 添加构建流水线命令,让 DeployHQ 在传输前构建你的站点:

```bash
pnpm install --frozen-lockfile && pnpm docs:build
```

3. 将构建输出目录设置为 `docs/.vuepress/dist`。DeployHQ 只会将该目录中的文件传输到你的服务器。

4. 在项目设置中添加一个服务器(SSH/SFTP/FTP、S3、Azure Blob 或 Rackspace Cloud Files),映射到你希望部署的分支(例如生产环境使用 `main`),并将部署路径设置为你 Web 服务器的文档根目录。

5. 手动触发一次部署,或启用自动部署,让每次推送到映射分支都会自动构建并发布。

::: tip
更多详细信息请参阅 [DeployHQ 的 VuePress 部署指南](https://www.deployhq.com/guides/vuepress)。
:::

<!-- 下列平台是中文文档特有的,放在最下方 -->

## 云开发 CloudBase
Expand Down