Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Heel is a small static web server for use when you need a quick web server for a directory.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
== Heel

* Homepage[http://copiousfreetime.rubyforge.org/heel/]
* {Rubyforge Project}[http://rubyforge.org/projects/copiousfreetime/]
* email jeremy at hinegardner dot org
* git clone git://github.com/copiousfreetime/heel.git

== DESCRIPTION

Heel is a small static web server for use when you need a quick web server for a
directory.  Once the server is running, heel will use
{launchy}[http://copiousfreetime.rubyforge.org/launchy/] to open your browser at
the URL of your document root.

Heel is built using {Rack}[http://rack.rubyforge.org] and
{Thin}[http://code.macournoyer.com/thin/]

   % heel        
   >> Thin web server (v1.0.0 codename That's What She Said)
   >> Threaded mode OFF
   >> Maximum connections set to 1024
   >> Listening on 0.0.0.0:4331, CTRL+C to stop
   Launching your browser...

Or run it in the background

  % heel --daemonize
  Created /Users/jeremy/.heel
  heel's PID (/Users/jeremy/.heel/heel.pid) and log file (/Users/jeremy/.heel/heel.log) are stored here
  Launching your browser at http://0.0.0.0:4331/

  % heel --kill
  Sending TERM to process 3304
  Done.

== FEATURES

* Automatic launching of your browser to the URL it is serving with {launchy}[http://copiousfreetime.rubyforge.org/launchy/]
* Automatic syntax highlighting of source code files with {coderay}[http://coderay.rubychan.de/]
* Run in the foreground or daemonized
* Bind to any address and port (default is 0.0.0.0:4331)

== SYNOPSIS:

	Usage: heel [options]

	    -a, --address ADDRESS            Address to bind to
	                                       (default: 0.0.0.0)
	    -d, --daemonize                  Run daemonized in the background
	    -h, --help                       Display this text
	    -k, --kill                       Kill an existing daemonized heel process
	        --[no-]highlighting          Turn on or off syntax highlighting
	                                       (default: off)
	        --[no-]launch-browser        Turn on or off automatic browser launch
	                                       (default: on)
	    -p, --port PORT                  Port to bind to
	                                       (default: 4331)
	    -r, --root ROOT                  Set the document root
	                                       (default: current working directory)
	    -v, --version                    Show version


== REQUIREMENTS:

=== For running: 

* {coderay}[http://coderay.rubychan.de/]
* {launchy}[http://copiousfreetime.rubyforge.org/launchy/] >= 0.1.1
* {mime-types}[http://mime-types.rubyforge.org/]
* {thin}[http://thin.rubyforge.org/]

=== For development:

* {rcov}[http://eigenclass.org/hiki.rb?rcov] >= 0.7.0.1
* {rspec}[http://rspec.rubyforge.org/]  >= 0.7.3
* {rake}[http://rake.rubyforge.org/] >= 0.7.1

== INSTALL:

* gem install heel

== CREDITS:

* {Thin}[http://code.macournoyer.com/thin/]
* {Rack}[http://rack.rubyforge.org/]
* http://www.famfamfam.com/ for amazing icons

== BSD LICENSE:

Copyright (c) 2007-2009, Jeremy Hinegardner

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
 
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the
      distribution.  
      
    * Neither the name of Jeremy Hinegardner nor the
      names of its contributors may be used to endorse or promote
      products derived from this software without specific prior written
      permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Something went wrong with that request. Please try again.