This post will guide you how to setup the Octopress blog and host it with Github. Why did I choosed Octopress for my blogging, I guess it was simple and better integration with github, and I didn’t wanted to spend any extra bucks for this. I’m currently setting this up in Elementary OS backed by ubuntu 12.04.
Check whether your ruby version is 1.9.3 or more then this
1
|
|
Clone the Octopress to your working directory.
1
|
|
Run this command and the Octopress is good to go.
1 2 3 4 |
|
Just to check whether every thing is working or not.
1
|
|
Check in your local browser, whether you can view page or not.
1
|
|
If you can see the Octopress sample page. that means you are good to go. Next we can setup it with Github.
It will ask your repository link, in my case it is git@github.com:ashish1099/ashish.github.io.git
1 2 3 |
|
Next we need to commit the source branch into GitHub.
1 2 3 |
|
If anything failed, check this commands.
1 2 3 4 5 |
|
If the above command is not returning your git repository, then probably you will have to add this.
1
|
|
Check what is the branch, it should be source
branch.
1 2 |
|
If it is not source
branch, then change it to source
branch by this command.
1 2 3 |
|