Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Guard::WEBrick automatically starts and restarts WEBrick when needed.
branch: master

This branch is even with fnichol:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard Up version for development.
spec Launch opens an HTTPS URL if SSL option is set.
.travis.yml Back off rbx testing for the moment, more JRuby! Release v0.1.4.
Gemfile Update dependencies for current guard.
Guardfile Update dependencies for current guard.
LICENSE Add Code Climate badge.
Rakefile Ensure specs pass across multiple rubies.


Build Status Code Climate

Guard::WEBrick automatically starts and restarts WEBrick when needed. Useful when you are working on a static site but want to benefit from Guard::LiveReload.

  • Tested on Ruby 1.9.3, 1.9.2, 1.8.7, Ruby Enterprise Edition, and JRuby (thanks TravisCI!)


Please be sure to have Guard installed before continue.

Install the gem:

gem install guard-webrick

Add it to your Gemfile (inside test group):

gem 'guard-webrick'

Add guard definition to your Guardfile by running this command:

guard init webrick


Please read Guard usage doc


You can adapt your 'view' files like you want. Please read Guard doc for more info about Guardfile DSL.

guard 'webrick' do


The WEBrick guard has 3 options that you can set like this:

guard 'webrick', :host => '', :port => '35728', :docroot => 'public' do

Available options:

:host => ''     # default ''
:port => '12345'         # default '3000'
:ssl => true             # default false
:docroot => 'public'     # default current working directory
:launchy => false        # default true


Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

== Authors

Fletcher Nichol

Something went wrong with that request. Please try again.