Created
November 22, 2011 18:44
-
-
Save doxavore/1386496 to your computer and use it in GitHub Desktop.
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
guard 'rails', :port => 3000, :server => :thin, :debugger => true do | |
watch('Gemfile.lock') | |
watch(%r{^(config|lib)/.*}) | |
# When caching classes, also restart when app is changed | |
cache_line = `cat config/environments/development.rb | grep "config\.cache_classes ="` | |
if cache_line =~ /=\s*(true|false)/ && $1 == 'true' | |
watch(%r{^app/.*}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment