ruby - 如何在 GitHub 上推送 Octopress 博客的更改?

标签 ruby github-pages octopress

我已经完成了 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.


OP Will Merydith comments :

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/

相关文章:

ruby - 安装 sqlite3-ruby 时出现问题!

git - 如何使用 index.html 作为子目录的符号链接(symbolic link)在 gh-pages 中部署

jekyll - 如何删除 "Powered by Jekyll with Chirpy theme."

google-maps - 是否可以在 Github 页面站点中嵌入 Google map ?

git - 我怎样才能保持我的博客 git 存储库干净?

ruby-on-rails - 了解 routes.rb 中的 "do, end"语法

ruby-on-rails - 如何将图像链接到(可点击)页面

ruby-on-rails - #<RSpec::Core::ExampleGroup...> 的 RSpec 3 未定义方法 `allow'

jekyll - 如何将 Jekyll 主题转换为 Octopress 主题

jekyll - 服务 Jekyll 时参数数量错误(1 对 2)