Skip to content

Commit

Permalink
fix Readme errors about deploy to Cloudflare (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
L1cardo committed Sep 23, 2023
1 parent 0ea2f4a commit 758695a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
14 changes: 8 additions & 6 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,17 +787,19 @@ python3(python) run_page/gen_svg.py --from-db --type circular --use-localtime
<summary> 使用 Cloudflare 部署 </summary>
<br>

1. `Pages` 中点击 `Create a project` 以连接到你的仓库
1. 登录到 [Cloudflare 仪表板](https://dash.cloudflare.com)

2. 点击 `Begin setup` 后,修改项目的 `Build settings`
2. 在左侧选择 `Workers 和 Pages`

3. `Framework preset` 中选择 `Create React App` 框架
3. 点击 `创建应用程序` 后选择 `Pages` 页面,链接您的 GitHub 账户并选择 `running_page` 仓库,点击 `开始设置`

4. 向下滚动,点击 `Environment variables` 修改变量如下:
4. 下滑到 `构建设置`,在 `框架预设` 中选择 `Create React App`,将 `构建输出目录` 设置为 `dist`

> Variable name = `PYTHON_VERSION`, Value = `3.7`
5. 下滑点击 `环境变量 (高级)`,并添加一个如下的变量:

5. 点击 `Save and Deploy`,完成部署。
> 变量名称 = `PYTHON_VERSION`, 值 = `3.7`
6. 点击 `保存并部署`,完成部署。

</details>

Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,15 +617,19 @@ For more display effects, see:
<summary> Use <code> Cloudflare </code> to deploy </summary>
<br>

1. Click `Create a project` in `Pages` to connect to your Repo.
1. Login to [Cloudflare dashboard](https://dash.cloudflare.com).

2. After clicking `Begin setup`, modify Project's `Build settings`.
2. Click `Workers & Pages` on the left side.

3. Select `Framework preset` to `Create React App`
3. Click `Create application` and select `Pages` tab, connect your GitHub account and select `running_page` Repo, then click `Begin setup`.

4. Scroll down, click `Environment variables`, then variable below:
4. Scroll down to `Build settings`, choose `Create React App` from `Framework preset`, and set `Build output directory` to `dist`.

5. Click `Save and Deploy`
5. Scroll down, click `Environment variables (advanced)`, then add a variable like below:

> Variable name = `PYTHON_VERSION`, Value = `3.7`
6. Click `Save and Deploy`

</details>

Expand Down

1 comment on commit 758695a

@vercel
Copy link

@vercel vercel bot commented on 758695a Sep 23, 2023

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:

running-page – ./

running-page-yihong0618.vercel.app
running-page.vercel.app
running-page-git-master-yihong0618.vercel.app

Please sign in to comment.