Created
August 22, 2015 04:29
-
-
Save gajayana/1238504df57638bfca28 to your computer and use it in GitHub Desktop.
Install guard-livereload in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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