Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【讨论】是否需要从 Vercel 迁移 wiki 到 Cloudflares #320

Closed
fky2015 opened this issue Jun 11, 2024 · 9 comments
Closed

【讨论】是否需要从 Vercel 迁移 wiki 到 Cloudflares #320

fky2015 opened this issue Jun 11, 2024 · 9 comments

Comments

@fky2015
Copy link
Contributor

fky2015 commented Jun 11, 2024

目前 Vercel 有两个问题:

  1. 绑定在我个人的账号下,未来我可能没有充足的时间维护。
  2. Vercel 的生产模式需要手动去升级,没法绑定仓库里的最新 commit。

不过 Cloudflares 在大陆访问的速度可能有点难以保证?

Relates-to: 网站自动部署 · BITNP/BIThesis · Discussion #409

@everything411
Copy link
Member

网协的主页目前也是挂在我名下的vercel里,日后也将出现类似问题。
刚才我研究了下,如下图所示Vercel无法自动部署的原因是这里同步到的分支是BITNP:master而非本仓库的master。我注意到手动在fork里点sync fork拉到的commit是master,而pull bot拉到的commit显示BITNP:master,因此换种同步github仓库的方式是否可解决此问题?
1718082833244

@fky2015
Copy link
Contributor Author

fky2015 commented Jun 11, 2024

网协的主页目前也是挂在我名下的vercel里,日后也将出现类似问题。 刚才我研究了下,如下图所示Vercel无法自动部署的原因是这里同步到的分支是BITNP:master而非本仓库的master。我注意到手动在fork里点sync fork拉到的commit是master,而pull bot拉到的commit显示BITNP:master,因此换种同步github仓库的方式是否可解决此问题? 1718082833244

我个人感觉是因为“Pull Bot 自动合入的 PR 没有触发 Vercel 的回调函数”。

image

比如上图只有我手动合入的那个 PR 才有 Merge pull request #122 from BITNP/main 字样,而其他的应该都是 PR 中提交 commit 时候的 preview 链接。

@everything411
Copy link
Member

vercel是根据分支来决定生产还是预览,如果有一种方式让Vercel里拉到的分支是main而非BITNP:main就好了

@YDX-2147483647
Copy link
Contributor

这几周决定一下?新学年又开始了。

@fky2015
Copy link
Contributor Author

fky2015 commented Oct 18, 2024

需要迁移

@YDX-2147483647
Copy link
Contributor

YDX-2147483647 commented Oct 18, 2024

大家好,我们的学位论文LaTeX模板BIThesis文档站在更换部署方式。试了以下三种平台,想测试各种网络环境下的效果。如果能帮忙,希望都访问下,看能否打开、速度如何。谢谢!

结果:N有地方打不开;C是中低速;V有人很快,有人很慢。

@YDX-2147483647 YDX-2147483647 pinned this issue Oct 18, 2024
@YDX-2147483647
Copy link
Contributor

YDX-2147483647 commented Oct 19, 2024

https://github.com/BITNP/BIThesis-wiki/compare/92472ba..b77839d

name: Sync to everything411 repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.E411_GITHUB_TOKEN }}
fetch-depth: 0
- name: Push
uses: wangchucheng/git-repo-sync@v0.1.0
with:
target-url: https://github.com/everything411/BIThesis-wiki.git
target-username: everything411
target-token: ${{ secrets.E411_GITHUB_TOKEN }}

https://bithesis-wiki-plum.vercel.app/
https://github.com/everything411/BIThesis-wiki

@everything411 everything411 unpinned this issue Oct 19, 2024
@everything411
Copy link
Member

https://github.com/BITNP/bitnp-website is also deployed through my personal account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants