Skip to content

Instantly share code, notes, and snippets.

@alexcabrera
Created November 21, 2012 16:58
Show Gist options
  • Save alexcabrera/4126035 to your computer and use it in GitHub Desktop.
Save alexcabrera/4126035 to your computer and use it in GitHub Desktop.
guard-livereload and proto

Getting proto and guard-livereload to play nice

  1. Install the Livereload Chrome Extension

  2. Install guard-livereload

    gem install guard-livereload

  3. Copy the Guardfile from this gist to your proto project directory.

    curl -L http://mrqe.co/10ucDCL > Guardfile

  4. Add the following alias to ~/.bash_profile to make your life easier

    alias livereload='guard start -i --no-bundler-warning'

  5. Reload bash config

    source ~/.bash_profile

  6. Run proto server proto . and livereload AT THE SAME DAMN TIME proto and guard

  7. Make stuff

  8. Win win win

guard 'livereload' do
watch(%r{.+\.(coffee|styl|jade)$})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment