【发布时间】:2013-06-01 23:39:59
【问题描述】:
我最近开始寻找一种解决方案,让 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)还是?甚至尝试制作页面但同样的问题。
【问题讨论】:
-
你把事情做好了吗?我面临同样的问题。
标签: octopress