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 [email protected]
一直在最後檢測權限的時候出現權限不夠,後面我還把~/.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,這就是部署了.