2012-04-10 39 views
0

我已经用Octopress文档设置了Octopress。
我在GitHub上安装了Octopress。而我的操作系统是Ubuntu。
也有一些是我遇到:安装Octopress后我无法进行任何修改

  1. 当我修改_config.ymlgit push origin source。但Web不会改变。
  2. 当我在octopress_path/source和git push origin source处添加CNAME时。但是我发现master branch没有CNAME,并且CNAME在'源分支'处。
  3. 当我添加一篇文章,并生成它。我在git push origin source之后,GitHub有这篇文章,但Web仍然没有。

我是八爪鱼的新手,我Google它,但我不知道为什么。
我该如何解决?

回答

4

你一定忘了运行:

$ rake deploy 

它会帮你生成master分支(这是显示网站),它会被推向自动github上。 source只是您网站的源代码,不能用于展示。

注意:每次修改(或增加)后,并准备部署时,你需要运行rake deploy。而rake preview用于本地测试。亲自查看官方文档。 :)


如果是第一次,你需要运行

$ rake setup_github_pages 

设置github上的页面为您服务。

然后每次添加后,运行

$ rake generate 
$ rake deploy 
+0

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

+0

@CloverStd check your github repo, does there have a 'master' branch? – Kjuly 2012-04-10 13:20:52

+0

Yes, There have a 'master' branch. And the '_deploy' folder is belong to 'master'. – CloverStd 2012-04-10 13:24:02

0

我刚才遇到像你一样的错误,幸好我找到解决办法!

我想问你一个问题:当你执行“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.

祝你好运!