Using Live Reload with Octopress

September 16, 2012

Live Reload is an awesome Mac app and browser extension which reloads your browser automagically when editing a file. Needless to save, it’s a bliss, never to {CMD,ctrl} + R again.

For those of us who are Mac less, the App is of course not available. Ruby to the rescue!

Install the LiveReload browser extension, see long explanation.

Edit Gemfile and add the following two lines:

source ""

group :development do
  gem 'guard'
  gem 'guard-livereload'

Create a Guardfile with the following content:

guard 'livereload' do

Open two terminal sessions (or panes if you’re a champ using TMUX):

rake generate && rake watch


Open your browser and press the LiveReload icon, and voila! You’re set!

comments powered by Disqus