Guard::Rack
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
:cmdis the command to run to mount the Rack application (defaultrackup).:hostis the host ip address to run on (default0.0.0.0).:portis the port number to run on (default9292).:environmentis the environment to use (defaultdevelopment).:start_on_startwill start the server when starting Guard (defaulttrue).:force_runkills any process that's holding open the listen port before attempting to (re)start Rack (defaultfalse).:daemonruns the server as a daemon, without any output to the terminal that ranguard(defaultfalse).:debuggerruns the server with the debugger enabled (defaultfalse). Required ruby-debug gem.:timeoutwaits this number of seconds when restarting the Rack server before reporting there's a problem (default20).:serverserve using server (one ofwebrick,mongrelorthin).:configrun the specified rackup file (defaultconfig.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.