美文网首页关于hexoHexoGithub + Hexo
Hexo选用部署的三个空间介绍

Hexo选用部署的三个空间介绍

作者: 蓝江_老涌 | 来源:发表于2016-10-11 14:37 被阅读159次

title: Hexo选用部署的三个空间介绍
date: 2016-10-11 09:52:19
categories: 网络工具
tags:
- 学习
- Hexo


两个地址布署网站的地址 coding-pages分支是coding,master分支是github与码云。


这是我的个人博客;分别布署在githubcoding上边,还有一个是码云

地址分别是:

在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文件,在最后边这样写。

deploy:
  type: git
repo: 
  github: https://github.com/ljzz/ljzz.github.io.git
  coding: https://git.coding.net/szcx/szcx.git
  oschina: https://git.oschina.net/szcx/szcx.git

2、在本地source文件夹中添加一个文件,在git中执行如下代码。

cd source/
touch Staticfile  #名字必须是Staticfile

3、布署
执行hexo ghexo d 这两条命令。此时博客就已经部署至两个平台了。

相关文章

网友评论

    本文标题:Hexo选用部署的三个空间介绍

    本文链接:https://www.haomeiwen.com/subject/qekbyttx.html