forked from imathis/octopress
-
Notifications
You must be signed in to change notification settings - Fork 4
Publishing
pfleidi edited this page Jan 24, 2012
·
3 revisions
To get publishing via Github Pages to work, you need to check out the source branch. After that you need to check out our master branch into a _deploy folder:
git clone -b source [email protected]:Binaergewitter/binaergewitter.github.com.git
git clone -b master [email protected]:Binaergewitter/binaergewitter.github.com.git binaergewitter.github.com/_deploy
To actually publish any content, you'll need to create some first. Have a look at the Octopress documentation if you need help creating content.
After you've created your content, use the preview rake task to verify that everything works the way it should and publish it afterwards with the gen_deploy task.
# Get a local avaliable preview on http://localhost:4000/
bundle exec rake preview
# After having checked your changes, deploy
bundle exec rake gen_deploy
You'll know if you're having locale problems, because you'll see messages like this while generating:
Configuration from /Users/pfleidi/coding/binaergewitter.github.com/_config.yml
Building site: source -> public
/Users/pfleidi/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/convertible.rb:29:in `read_yaml': invalid byte sequence in US-ASCII (ArgumentError)
from /Users/pfleidi/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/post.rb:39:in `initialize'
...
To fix this, add the following locale settings to your ~/.bashrc or ~/.zshrc
export LC_CTYPE=en_US.UTF-8
export LANG=en_US.UTF-8