Creating a GitHub Page With Octopress
- Ruby 1.9.3
- Get xcode (or Xcode command line tools)
\curl -L https://get.rvm.io | bash -s
rvm autolibs homebrew
rvm requirements
rvm install 1.9.3
- Install Octopress
- I had line ending issues with this application
git clone git://github.com/imathis/octopress.git octopress
cd octopress # If you use RVM, You’ll be asked if you trust the .rvmrc file (say yes).
ruby --version # Should report Ruby 1.9.3
bundle install
rake install
- Deploy to Github Pages
- Create a new Github repository and name the repository with your user name or organization name
username.github.io
rake setup_github_pages – use the git protocol for the remote url
- This creates a crazy structure
- _deploy –> master
- everything else –> source
- public –> ignored (generated)
- Fix the tracking branch –
git branch --set-upstream source origin/source
- Configure Octopress
- Modify _config.yml
- name, title, etc
- Third party – github, twitter, etc.
- regenerate and redeploy-
rake generate && rake deploy
- Post!
rake new_post
- Edit the post created
- Add some categories
- Write the post – Using Markdown
- Check it out –
rake preview
- Publish! –
rake deploy