2016-03-08 37 views
0

我試圖建立一個靜態的鬼博客使用的剋星靜態生成Github上託管鬼博客。我已經試過各種指令,包括:試圖建立與巴斯特

https://stefanscherer.github.io/setup-ghost-for-github-pages/ http://blog.sunnyg.io/2015/09/24/ghost-with-github/

但是當我到了「剋星生成」命令我得到了終端下面的輸出。 它在本地運行良好。

任何人都可以點我在正確的方向?

buster generate 
--2016-03-07 23:53:11-- http://localhost:2368/ 
Resolving localhost... ::1, 127.0.0.1 
Connecting to localhost|::1|:2368... failed: Connection refused. 
Connecting to localhost|127.0.0.1|:2368... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 4508 (4.4K) [text/html] 
Saving to: '/Users/philip/Development/Node/ghost-0.7.8/static/index.html' 

fixing links in /Users/philip/Development/Node/ghost-0.7.8/static/index.html 
Traceback (most recent call last): 
File "/usr/local/bin/buster", line 9, in <module> 
load_entry_point('buster==0.1.3', 'console_scripts', 'buster')() 
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buster/buster.py", line 90, in main 
newtext = fixLinks(filetext, parser) 
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buster/buster.py", line 64, in fixLinks 
d = PyQuery(bytes(bytearray(text, encoding='utf-8')), parser=parser) 
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyquery/pyquery.py", line 226, in __init__ 
elements = fromstring(context, self.parser) 
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyquery/pyquery.py", line 90, in fromstring 
result = custom_parser(context) 
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml/html/__init__.py", line 867, in fromstring 
doc = document_fromstring(html, parser=parser, base_url=base_url, **kw) 
File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml/html/__init__.py", line 752, in document_fromstring 
value = etree.fromstring(html, parser, **kw) 
File "src/lxml/lxml.etree.pyx", line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:82934) 
File "src/lxml/parser.pxi", line 1819, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:124533) 
File "src/lxml/parser.pxi", line 1707, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:123074) 
File "src/lxml/parser.pxi", line 1079, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:117114) 
File "src/lxml/parser.pxi", line 573, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:110510) 
File "src/lxml/parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:112276) 
File "src/lxml/parser.pxi", line 624, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:111367)lxml.etree.XMLSyntaxError: None 
+0

這並不能真正幫助,但我所看到多人在過去幾個月遇到了問題。我猜自從上次提交是一年半以前,可能別人創造的問題說,它不工作,則可以打破現在:(。很想知道,如果你得到它的工作,雖然。 – David

+0

我做的但是,我沒有在很多其他博客上推薦'快速安裝',而是在git這裏做了'Developer Install' https://github.com/TryGhost/Ghost 另外,我注意到推薦一些博客只是用 「巴斯特產生」但是這並沒有爲我工作,並指定使用 一個url「剋星產生--domain = HTTP://本地主機:2368」 – phil

回答

1

正如評論所說,我沒有得到然而工作,而不是僅僅做了「快速安裝」的建議很多,我使用Stable分支去了「開發安裝」指南的途經此地https://github.com/TryGhost/Ghost

後您通過運行(與本地服務器上運行),在另一端,在這裏運行

$ buster setup 
<Enter git repo> 
$ buster generate --domain=localhost:2368 
$ buster deploy (or as most sane people prefer, just git push) 

完整說明:http://phil-a.github.io/getting-ghost-running-on-github-with-buster