Hexo布署到gitee

hexo己经部署到了github成功了,可是太慢啦!怎么办?

国内有https://gitee.com/,号称码云。双称中国的github,速度快。先去注册账户吧

  1. 如同github一样,建立仓库。注意,仓库名必须与你的gitee用户名相同,不然全出错。

修改myblog目录下的_config.yml文件

1
2
3
4
5
6
7
url: https://gitee.com/你的用户名/你的仓库名/
root: /
----------
deploy:
type: git
repo: https://gitee.com/你的用户名/你的仓库名/.git
branch: master
  1. 在gitee上一样,setting—>SSH and GPG keys—->New SSH key中,然后把刚才id_rsa.pub文件中的内容copy放在此框中

  2. 动行hexo并用git上传

1
2
3
$ npm install hexo-deployer-git --save
$ sudo hexo g
$ sudo hexo d

然面出错啦!##

  1. 原来是以前建立github时的设置要重新设。
1
2
$ git config --global user.name 注册gitee的用户名
$ git config --global user.email 注册gitee的邮箱名

再次执行

1
$ hexo deploy

上传成功了,然而…..
####### 我的页面呢?为啥子显示不了呢?

  1. 进入到你的gitee页,然后选择(服务-gitee pages)。顺利话的你的个人站点就已经完成了