我最近开始寻找一种解决方案,让 ruby 与 Octopress 一起使用,因为我在使用 Ruby/Passenger/Apache 时遇到了问题,我决定将我的 Octopress 网站托管在 Github 页面上。
现在我有自己的 octopress 正在运行,但我遇到了问题,因为我是 Github 和 Octopress 的新手——也许有人可以帮助我?
我有一个:
- 主分支
- 源分支
这就是我所看到的:
User@WKS-021 ~/octopress $ git remote -v
octopress git://github.com/imathis/octopress.git (fetch)
octopress git://github.com/imathis/octopress.git (push)
origin https://github.com/xxxxx/xxxxx.github.com.git (fetch)
origin https://github.com/xxxxx/xxxxx.github.com.git (push)
和:
User@WKS-021 ~/octopress $ git branch
* source
现在我导入了我喜欢的主题,但是如何部署帖子?例如,我可以从 Octopress 文档中执行以下操作:
rake new_post["Hello Octopress"]
# Creates source/_posts/2012-01-30-Hello-Octopress.markdown
我可以看到这个(在 rake 生成/部署之后)
~/octopress/source/_posts(本地)
但即使在之后:
$rake generate
$git add .
$git commit -m "Initial blog post."
$git push origin source
$rake deploy
当我填写浏览器时,我无能为力 - 我经常收到 404 页面错误
http://xxxxx.nl/blog/2012/01/30/Hello-Octopress
我做错了什么,是首页(index.html)上的帖子还是?甚至试图制作页面但同样的问题。