Skip to content

Commit

Permalink
修复了部署脚本中替换字符串时的错误,以及更新了重新安装文档
Browse files Browse the repository at this point in the history
  • Loading branch information
hocgin committed Jul 28, 2024
1 parent 528bf86 commit 887b34d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
cd pages
pnpm npx wrangler d1 execute yourselfemail_db --remote --file=./migrations/0001_create_table.sql
sed -i "s/:youradmin_mail/:${CLOUDFLARE_EMAIL_ADDRESS}/g" ./scripts/add_super_admin.sql
sed -i "s/youradmin_mail/${CLOUDFLARE_EMAIL_ADDRESS}/g" ./scripts/add_super_admin.sql
pnpm npx wrangler d1 execute yourselfemail_db --remote --file=./scripts/add_super_admin.sql
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions docs/One-clickDeployment-zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### 操作流程
> 如果安装失败,重新运行需要参考[前置条件](./Reinstall.md)
1. 点击`fork`

![fork.png](tutorial/fork.png)
Expand Down
2 changes: 2 additions & 0 deletions docs/One-clickDeployment.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### 操作流程
> 如果安装失败,重新运行需要参考[前置条件](./Reinstall.md)
1. Click `fork`

![fork.png](tutorial/fork.png)
Expand Down
11 changes: 11 additions & 0 deletions docs/Reinstall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 重新安装
> 当安装运行失败时,可能是因为安装的一些前置条件没有满足,可以检查一下你的 Cloudflare。
### 需要确保没有以下内容
- D1:
- KV: yourselfemail_kv
- Pages: yourselfemail
- Workers: yourselfemail_worker


### 需要确保有以下权限

0 comments on commit 887b34d

Please sign in to comment.