Skip to content

Commit

Permalink
release v3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenQingchuan authored Sep 23, 2022
2 parents 6165168 + c68c732 commit 16ade68
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions guide/static-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,60 +274,6 @@ $ npx wrangler pages publish dist

你也可以通过添加 `surge dist yourdomain.com` 部署到一个 [自定义域名](http://surge.sh/help/adding-a-custom-domain)

## Heroku {#heroku}

1. 安装 [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)

2. [注册](https://signup.heroku.com)一个 Heroku 账号。

3. 运行 `heroku login` 并填入你的 Heroku 凭证:

```bash
$ heroku login
```

4. 在项目根目录创建一个 `static.json` ,包含以下内容:

`static.json`:

```json
{
"root": "./dist"
}
```

这是你站点的配置,阅读 [heroku-buildpack-static](https://github.com/heroku/heroku-buildpack-static) 文档来了解更多。

5. 配置好你的 Heroku git 远程地址:

```bash
# 版本变更
$ git init
$ git add .
$ git commit -m "My site ready for deployment."

# 创建一个具有指定名称的新应用
$ heroku apps:create example
```

6. 设置 buildpacks。我们使用 `heroku/nodejs` 来构建项目,`heroku-buildpack-static` 为其启动服务。

```bash
# set buildpacks
$ heroku buildpacks:set heroku/nodejs
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static.git
```

7. 部署站点:

```bash
# 发布站点
$ git push heroku main

# 在浏览器中打开 Heroku 的面板
$ heroku open
```

## Azure 的静态网站应用 {#azure-static-web-apps}

你可以通过微软 Azure 的 [静态网站应用](https://aka.ms/staticwebapps) 服务来快速部署你的 Vite 应用。你只需:
Expand Down

1 comment on commit 16ade68

@vercel
Copy link

@vercel vercel bot commented on 16ade68 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cn-vitejs-dev – ./

cn-vitejs-dev-vuejs.vercel.app
cn.vitejs.dev
cn-vitejs-dev-git-main-vuejs.vercel.app
docs-cn.vercel.app

Please sign in to comment.