diff --git a/README.md b/README.md new file mode 100644 index 0000000..0c0c74f --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +Want to restart your Rails dev server whilst you work? Now you can! + + guard 'rails', :port => 5000 do + watch('Gemfile.lock') + watch(%r{^(config|lib)/.*}) + end + +Three fun options! + +* `:port` is the port number to run on (default 3000) +* `:environment` is the environment to use (default development) +* `:start_on_start` will start the server when starting Guard (default true) + +This is super-alpha, but it works for me! + diff --git a/lib/guard/rails/templates/Guardfile b/lib/guard/rails/templates/Guardfile new file mode 100644 index 0000000..2e834b8 --- /dev/null +++ b/lib/guard/rails/templates/Guardfile @@ -0,0 +1,5 @@ +guard 'rails' do + watch('Gemfile.lock') + watch(%r{^(config|lib)/.*}) +end +