三个地址布署网站的地址 coding-pages分支是coding,master分支是github与码云。
这是我的个人博客;分别布署在github与coding上边,还有一个是码云。
地址分别是:
在github上 HTTP 方式访问仓库: https://github.com/ljzz/ljzz.github.io.git
在github上 SSH 方式访问仓库:git@github.com:ljzz/ljzz.github.io.git
在coding上HTTP方式访问仓库: https://git.coding.net/szcx/szcx.git
在coding上SSH 方式访问仓库 :git@git.coding.net:szcx/szcx.git
在码云上:https://git.oschina.net/szcx/szcx.git
在码云上:git@git.oschina.net:szcx/szcx.git
pages服务生成的网址在github上: https://ljzz.github.io
pages服务生成的网址在coding上: http://szcx.coding.me/szcx
在码云上: http://szcx.oschina.io
同时部署到三个空间。
1、修改根目录下的_config.yml
文件,在最后边这样写。
123456deploy: type: gitrepo: github: https://github.com/ljzz/ljzz.github.io.git,master coding: https://git.coding.net/szcx/szcx.git,coding-pages oschina: https://git.oschina.net/szcx/szcx.git,master
2、在本地source文件夹中添加一个文件,在git中执行如下代码。1cd source/
|
|
3、布署
执行hexo g
和hexo d
这两条命令。此时博客就已经部署至两个平台了。