Heel

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 to open your browser at the URL of your document root.

Heel is built using Rack and 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

  • Automatic syntax highlighting of source code files with coderay

  • 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: 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, 2008, 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.