Heel

DESCRIPTION:

Heel is a small static file web server based on mongrel for use when you need a quick web server for a directory. Once the server is running heel will use launchy to open your browser at the URL of your document root.

% heel 
** Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart).
** heel running at http://127.0.0.1:4331 with document root /Users/jeremy/Projects/heel
** Use Ctrl-C to stop.
** Launching your browser...
127.0.0.1 - - [19/Nov/2007:23:23:33 MST] "GET / HTTP/1.1" 200 8374
127.0.0.1 - - [19/Nov/2007:23:23:33 MST] "GET /css/listing.css HTTP/1.1" 200 984
127.0.0.1 - - [19/Nov/2007:23:23:33 MST] "GET /icons/application.png HTTP/1.1" 200 464
127.0.0.1 - - [19/Nov/2007:23:23:33 MST] "GET /icons/folder.png HTTP/1.1" 200 537
127.0.0.1 - - [19/Nov/2007:23:23:33 MST] "GET /favicon.ico HTTP/1.1" 404 0

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

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

FEATURES

  • Automatic launching of your browser to the URL it is serving with launchy

  • Automatic syntax highlighting of source code files with coderay

  • Run in the foreground or daemonized

  • Bind to any address and port (default is 127.0.0.1:4331)

SYNOPSIS:

Usage: heel [options]

-a, –address ADDRESS Address to bind to (default: 127.0.0.1) -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: on) –[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:

For development:

INSTALL:

  • gem install heel

CREDITS:

BSD LICENSE:

Copyright © 2007, 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.