With code as blog hosting and avoid github ssh coverage

reference


https://cloud.tencent.com/developer/article/1500458

 

 

 

 

This article is the third in a series to build personal blog, fashion blog hosting a variety of speakers.

github page, after all, is a foreign site, access speed is relatively slow, but at the same time you want to save on gihub the code, you can try simultaneously hosting two warehouses.

Resolve to do when overseas ip points to github, domestic or Baidu directly pointing coding

 

1.

Submit code on the coding

 

First, do the operation and github are the same, it is to create a ssh.

It should be noted here that have gihub of ssh on your computer, if it is the same all the way round like github will gihub of ssh to overwrite.

So here in execution

$ ssh-keygen -t rsa -C "[email protected]"

To note, the resulting file to configure a new path:

Then the resulting configuration ssh

Created in the coding in a warehouse, where attention is free to take the name of the warehouse, the same can not gihub freely given.

We will create a git repository address to _config.yml in:

deploy:  type: git  repo:
github: https://github.com/ConardLi/ConardLi.github.io.gitcoding: https://git.dev.tencent.com/ConardLi/lisqBlog.gitbranch: master

然后重新部署并上传博客,去仓库查看代码证明上传成功:

2

开启coding page

点击coding的pages服务,直接点击一键开启即可。

开启后即可通过给定域名直接访问了:

http://conardli.coding.me/

3

域名解析

将新生成的coding域名进行解析,这样国内就默认访问coding的页面,比github要快不少。

另外还可以将github的ip进行国外站点配置。

在coding page中将自己的域名进行绑定。

配置完成后发现速度快了不少,有木有...

 

 

Guess you like

Origin www.cnblogs.com/clemente/p/12401902.html