http://zanderzhang.gitcafe.io/2015/09/17/hexo部署到gitcafe上静态博客/

title: hexo部署到gitcafe上静态博客 date: 2015-09-17 00:14:24

tags:

hexo这些事儿,zippera's blog,之类的,这些都说的很清楚了.


不过也还是有几个特别的地方:


想插入图片的时候竟然上不了谷歌.好吧,睡觉,明天继续


在部署deploy的时候,出现

ERROR Deployer not found: git,

加上

npm install hexo-deployer-git --save, 之前type是填github,现在是git了,估计是因为有除了github之外的托管博客的网站.

如果是github, branch也可以不填,默认master.

是gitcafe的话,就需填上gitcafe-pages,在repo的时候,可以直接git remote -v,


参考链接建立分支gitcafe-pages.


gitcafe page帮助,在这里面,因为它现在没有跟github一样的Github Desktop,


在配置SSH公钥的时候就稍微步骤多了一点点.


我按照官方教程操作,

ssh -T git@gitcafe.com

一直在最后检测权限的时候出现权限不够,后面我还把~/.ssh文件删除,因为里面包括了github的公钥,我以为是这个原因,后面还是出现Permission denied. 之后我在网上查了一下,加了这个权限就OK了.

chmod 700 ~/.ssh


写markdown这个挺好的--->mou,对于像我这样的新手,双屏,可以实时查看,检查错误之类的.

hexo clean
挺好用的,你可以试试.

hexo s -g == hexo generate +hexo server,在本地查看

INFO Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.

hexo d -g == hexo generate + hexo deploy,这就是部署了.