Getting Start With Octopress

1. Setup Octopress

1
2
3
4
5
6
git clone git://github.com/imathis/octopress.git octopress
cd octopress
  
gem install bundler
bundle install
rake install

2. Configuring Octopress

1
vi _config.yml

3. Install Greyshade Theme

https://github.com/shashankmehta/greyshade

1
2
3
4
$ git clone git@github.com:shashankmehta/greyshade.git .themes/greyshade
$ echo "\$greyshade: color;" >> sass/custom/_colors.scss //Substitue 'color' with your highlight color
$ rake "install[greyshade]"
$ rake generate

4. Create Posts

1
2
rake new_post["title"]   
vi source/_posts/2013-09-28-title.markdown

Just using < !– more –> in your post, Octopress will auto generate the "Read On" button.

5. Generate, Preview

Generates posts and pages into the public directory

1
rake generate   

Watches source/ and sass/ for changes and regenerates

1
rake watch      

Watches, and mounts a webserver at http://localhost:4000

1
rake preview

6. SSH config for heroku

edit ~/.ssh/config

1
2
3
4
5
Host heroku.com
Hostname 107.21.95.3
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
port 22

7. Deploy to heroku

Add your heroku application

1
2
3
heroku git:remote -a your-application

git push heroku master