Restart Rack when files change.
Ruby
Permalink
Failed to load latest commit information.
lib Preparing for next development iteration, 2.2.1. Apr 16, 2016
spec
.gitignore Guard::Rack initial commit. Feb 23, 2012
.rspec Guard::Rack initial commit. Feb 23, 2012
.rubocop.yml Upgraded RuboCop to 0.27.1. Nov 14, 2014
.rubocop_todo.yml Added `--host` support Jan 2, 2015
.travis.yml Use sudo: false, faster Travis-CI. Nov 14, 2014
CHANGELOG.md Preparing for next development iteration, 2.2.1. Apr 16, 2016
Gemfile Lock down versions of dependencies. Nov 14, 2014
Guardfile Upgraded RuboCop to 0.27.1. Nov 14, 2014
LICENSE.md Guard::Rack initial commit. Feb 23, 2012
README.md Add support for a customizable rackup command Mar 5, 2015
RELEASING.md Add another step to the releasing process Mar 7, 2015
Rakefile Upgraded RuboCop to 0.27.1. Nov 14, 2014
guard-rack.gemspec Remove the explicit dependencies on notify gems Mar 5, 2015

README.md

Guard::Rack

Gem Version Build Status Dependency Status Code Climate

Want to restart your Rack development with rackup whilst you work? Now you can!

guard 'rack', :port => 9292 do
  watch('Gemfile.lock')
  watch(%r{^(config|lib|app)/.*})
end

Options

  • :cmd is the command to run to mount the Rack application (default rackup).
  • :host is the host ip address to run on (default 0.0.0.0).
  • :port is the port number to run on (default 9292).
  • :environment is the environment to use (default development).
  • :start_on_start will start the server when starting Guard (default true).
  • :force_run kills any process that's holding open the listen port before attempting to (re)start Rack (default false).
  • :daemon runs the server as a daemon, without any output to the terminal that ran guard (default false).
  • :debugger runs the server with the debugger enabled (default false). Required ruby-debug gem.
  • :timeout waits this number of seconds when restarting the Rack server before reporting there's a problem (default 20).
  • :server serve using server (one of webrick, mongrel or thin).
  • :config run the specified rackup file (default config.ru).

Contributing

Fork the project. Make your feature addition or bug fix with tests. Send a pull request. Bonus points for topic branches.

Copyright and License

MIT License, see LICENSE for details.

(c) 2012-2015 Daniel Doubrovkine and Contributors.