我刚才遇到像你一样的错误,幸好我找到解决办法!
我想问你一个问题:当你执行“rake generate”时,你看到命令输出的错误吗?我所遇到的错误就是这样的:
chienlung @ chienlung:〜/ octopress $耙产生
生成网站与哲基尔 不变SASS/screen.scss /home/chienlung/.rvm/gems/ruby -1.9.3-p327/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:在<top (required)>': iconv will be deprecated in the future, use String#encode instead. /home/chienlung/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:203:in
解析':(/home/chienlung/octopress/_config.yml):找不到预期的':'同时在第10行第1列扫描一个简单的键1(Psych :: SyntaxError)
然后我马上检查了我的_config。yml file, it likes this :
。。some lines here。。。。
url: http://Chienlung.github.com
title: 陆彦帑的博客
subtitle: 宗介波妞手拉手,宗介永远爱波妞。
author: 陆彦帑
simple_search:
description:愿我如星君如月,夜夜流光相皎洁。
the line ten is : description:愿我如星君如月,夜夜流光相皎洁。
。。。。other lines from here。。。。。
the error from the "space" following by the word "description".
i modified the space to be like other line(like "url: http://Chienlung.github.com "),then i excuted "rake generate" and "rake deploy",it works!!!!
im a newbie ,i guess the reason for this error is Encoding。
Hope to help you.
祝你好运!
Thanks. I try to run 'rake deploy', but the web still is nothing. And I can preview on http://localhost:4000. The localhost shows what I added and modified. – CloverStd 2012-04-10 13:10:40
@CloverStd check your github repo, does there have a 'master' branch? – Kjuly 2012-04-10 13:20:52
Yes, There have a 'master' branch. And the '_deploy' folder is belong to 'master'. – CloverStd 2012-04-10 13:24:02