Skip to content

Instantly share code, notes, and snippets.

@doxavore
Created November 22, 2011 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doxavore/1386496 to your computer and use it in GitHub Desktop.
Save doxavore/1386496 to your computer and use it in GitHub Desktop.
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