Code Monkey home page Code Monkey logo

willxuecn.github.io's People

Contributors

willxuecn avatar

Watchers

 avatar

willxuecn.github.io's Issues

将博客同时托管在github和coding.net

willxue

前言


之前查资料发现国内也有个代码托管平台gitcafe,和github很像,打开官网发现gitcafe已经被coding收购了,我们可以把博客托管在coding上,毕竟github服务器在国外可能有所限制(测试时发现访问速度上没什么区别,有时coding还不如github访问快呢)。

正文


一切为了折腾啊!

注册coding,创建项目

注册什么的我就不说了,有点智商的人都会。进入后台,创建新项目。项目名要和用户名一样,这样访问 username.coding.me 就会进入项目了。

willxue

配置SSH密钥

可以用以前github生成的,参考前面教程。
willxue
测试:

看到下图所示,表示成功了。
willxue

修改配置文件

找到hexo目录下站点配置文件 _config.yml

deploy:
  type: git
  repo:
	  github: [email protected]:imwillxue/imwillxue.github.io.git,master
	  coding: [email protected]:willxue/willxue.git,master

可能要安装插件:

npm install hexo-deployer-git --save

然后,测试一下吧。

hexo clean
hexo g
hexo d

开启pages服务

willxue
我开启的master分支的。
开启以后访问 http://willxue.coding.me 测试一下看看成功了吗。

绑定域名

要实现国内访问跳转到coding,国外访问跳转到github,可以这样设置。
willxue
注: 我的这种配置要在github根目录新建个CNAME文件,里面填上willxue.top。另外在coding的pages里要绑定域名。

今天又弄了几个免费顶级域名tk ml cf ga 。感觉速度上并没有很慢。

可以用站长之家工具测试一下。

最后

参考了一些前辈的文章。还有很多百度google的,链接忘了,同样感谢。
http://opiece.me/2016/03/13/push-hexo-to-github-and-coding/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.