Skip to content

Instantly share code, notes, and snippets.

@gajayana
Created August 22, 2015 04:29
Show Gist options
  • Save gajayana/1238504df57638bfca28 to your computer and use it in GitHub Desktop.
Save gajayana/1238504df57638bfca28 to your computer and use it in GitHub Desktop.
Install guard-livereload in Ubuntu
$ sudo apt-get install ruby-dev
$ sudo gem install bundle
$ sudo gem install guard
$ sudo gem install guard-livereload
cd to project folder
$ bundle init
open .Gemfile, add following:
gem 'guard'
gem 'guard-livereload'
back to terminal
$ bundle exec guard init livereload
open .Guardfile, add following:
# https://github.com/guard/guard-livereload
guard :livereload do
watch(%r{.+.(css|js|html|php)$})
end
back to terminal
$ bundle exec guard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment