Zack Hubert

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):

1
2
3
4
5
6
$ 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:

1
$ rake setup_github_pages

Using the full git@github.com: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:

1
$ cat 'www.zhubert.com' >> source/CNAME

Now I could build my initial pages

1
2
$ rake generate
$ rake deploy

And commit everything in Git.

1
2
3
$ git add .
$ git commit -am 'init'
$ git push origin source

Next, I had to tell Namecheap the score by setting:

1
2
@ 204.232.175.78 A
www zhubert.github.com. CNAME

And that’s the basics for getting setup with Github Pages and Octopress.

Comments