Blogging - - ~1 minute
Getting Started with Octopress
So I decided to use Octopress for all sorts of wonderful reasons…simple to setup, free to host on Github, looks nice, writing entries like I write code.
Here’s what I did to get it working (assumes you have the basics installed):
$ rvm install 1.9.2 && rvm use 1.9.2 $ git clone git://github.com/imathis/octopress.git octopress # from ~/code $ cd octopress $ gem install bundler $ bundle update $ rake install
Since Github Pages are so awesome, I decided to go with that for my “hosting”
After creating a repo
zhubert.github.com I ran the initial setup:
$ rake setup_github_pages
Using the full
firstname.lastname@example.org:zhubert/zhubert.github.com.git when asked for a URL.
Then I modified my
_config.yml to have
www.zhubert.com for a URL and then made a CNAME file:
$ cat 'www.zhubert.com' >> source/CNAME
Now I could build my initial pages
$ rake generate $ rake deploy
And commit everything in Git.
$ git add . $ git commit -am 'init' $ git push origin source
Next, I had to tell Namecheap the score by setting:
@ 188.8.131.52 A www zhubert.github.com. CNAME
And that’s the basics for getting setup with Github Pages and Octopress.