我已经完成了 Octopress 设置和部署说明,并且我在 Github 上运行了 Octopress:http://wmerydith.github.com
我的 repo 设置为 Master 的默认分支。
我现在想将更改推送到配置文件,例如更改 url:、title: 和 subtitle:。我进行了这些更改,提交了它们,然后进行了 rake 部署,但这些更改没有显示出来。
我不清楚的是推送配置更改、内容更改以及在某些时候将新更新推送到 Octopress 博客的过程中的差异。
例如,我会使用 rake deploy 来推送配置和内容更改吗?
我是否需要再次运行 rake generate 或 rake deploy?如何在 Octopress 更新时推送源更改?
最佳答案
来自 the documentation ,你可能想做一个:
rake generate
在 rake 部署
之前。
This will:
- generate your blog,
- copy the generated files into
_deploy/
,- add them to git,
- commit and push them up to the
master
branch.In a few seconds you should get an email from Github telling you that your commit has been received and will be published on your site.
I am unclear on is if '
rake deploy
' is enough to push content changes to the blog.
I'm seeing some issue with content not making it to the blog and am unclear if the error is how I am deploying or something else
我确认 Rakefile task :deploy将执行 default_deploy
这将执行 task :push
.
关于ruby - 如何在 GitHub 上推送 Octopress 博客的更改?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12830148/