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

同步社区页面到 Gitee 上 #280

Closed
3 of 4 tasks
iLtc opened this issue Feb 21, 2020 · 23 comments
Closed
3 of 4 tasks

同步社区页面到 Gitee 上 #280

iLtc opened this issue Feb 21, 2020 · 23 comments
Assignees
Labels
kind/feature Category issues or prs related to feature request.

Comments

@iLtc
Copy link
Member

iLtc commented Feb 21, 2020

终于决定将社区页面到托管平台从 GitHub Pages 迁移到 Gitee Pages 啦。

以下是计划的步骤:

  • 实现 GitHub 代码自动同步到 Gitee,打算通过 Travis CI 执行脚本来实现
  • 验证 Gitee 社区页面有没有异常
  • 切换域名解析到 Gitee
  • 检测百度收录情况

注意只是将 GitHub Pages 同步到 Gitee Pages,提交代码仍在 GitHub 上进行。

@iLtc iLtc added the kind/feature Category issues or prs related to feature request. label Feb 21, 2020
@iLtc iLtc self-assigned this Feb 21, 2020
@lovepoem lovepoem pinned this issue Feb 21, 2020
@iLtc
Copy link
Member Author

iLtc commented Feb 22, 2020

gitee 自动同步已实现,先放任它跑两天看看有没有问题

@jeremy0519
Copy link
Contributor

我自己搭的gitee pages百度收录没问题

@jeremy0519
Copy link
Contributor

社区页面也没问题

@WeileiZeng
Copy link
Member

有Gitee链接吗

@iLtc
Copy link
Member Author

iLtc commented Feb 22, 2020

https://wuhan2020.gitee.io/

@lovepoem lovepoem unpinned this issue Feb 25, 2020
@zhaofeng-shu33
Copy link
Member

why gitee?

@iLtc
Copy link
Member Author

iLtc commented Feb 27, 2020

@zhaofeng-shu33

For some reason, GitHub Pages do not work with Baidu Spider, so our site does not show up in Baidu search results.

Also, images on our site load slow for people in China.

@zhaofeng-shu33
Copy link
Member

zhaofeng-shu33 commented Feb 27, 2020

It is reported that gitee page does not support custom domains if they haven't registered themselves in ICP system. So currently we have to use gitee original domain name wuhan2020.gitee.io to visit the website.

@iLtc
Copy link
Member Author

iLtc commented Feb 27, 2020

It is reported that gitee page does not support custom domains if they haven't registered themselves in ICP system. So currently we have to use gitee original domain name wuhan2020.gitee.io to visit the website.

Yes, you are correct. I think @frank-zsy is working on registering our domain, but due to the epidemic, the process is slow now.

@jeremy0519
Copy link
Contributor

好像gitee如果自定义域名的话,必须要gitee pages pro
gitee官网上说的:

Gitee Pages Pro 是支持自定义域名版本的 Gitee Pages。目前在码云GVP、码云推荐项目和码云付费企业版中可以免费使用。

@lovepoem lovepoem changed the title 迁移社区页面到 Gitee 上 同步社区页面到 Gitee 上 Mar 4, 2020
@jeremy0519
Copy link
Contributor

现在这个issue还有人正在做吗?

@lovepoem
Copy link
Collaborator

lovepoem commented Mar 6, 2020

现在这个issue还有人正在做吗?

还没有结束,别关

@iLtc
Copy link
Member Author

iLtc commented Mar 6, 2020

还在等备案吧?

@lovepoem
Copy link
Collaborator

lovepoem commented Mar 6, 2020

还在等备案吧?

@zhaofeng-shu33
Copy link
Member

In China, I am afraid org.cn is difficult to pass the audit for a community without certificate.

@lovepoem
Copy link
Collaborator

lovepoem commented Mar 8, 2020

百度收录还是不行,sitemap抓取会报超时

@zhaofeng-shu33
Copy link
Member

Why timeout?

@lovepoem
Copy link
Collaborator

lovepoem commented Mar 8, 2020

Why timeout?

不知道 按理说百度抓取的时候应该读取gitee的sitemap,现在速度够快了

@zhaofeng-shu33
Copy link
Member

Visit the overseas website maybe?

@lovepoem
Copy link
Collaborator

百度收录不行,暂时关闭

@zhaofeng-shu33
Copy link
Member

I wonder how to push to gitee without prompt of username and password. @iLtc

@iLtc
Copy link
Member Author

iLtc commented Apr 1, 2020

I wonder how to push to gitee without prompt of username and password. @iLtc

There is a sync button on Gitee that we can manually click to triage the sync, but there is no API to do that automatically.

To push the updates automatically, we need either username and password or SSH key. As far as I knew, these are the only two ways to push automatically.

The reason why I choose to not use SSH key is that there is a prompt to accept the server key, and developers are discouraged to override the prompt automatically.

@zhaofeng-shu33
Copy link
Member

So in this repo, we use "username and password" method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or prs related to feature request.
Projects
None yet
Development

No branches or pull requests

5 participants