Project

httplz

0.0
No commit activity in last 3 years
No release in over 3 years
serve the files in the specified directory over http with a simple command
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

httplz

easy http file serving

dependencies

  • ruby

why?

test your HTML files without copying/symlinking to where your webserver is configured to serve content from.

also, for those of us who are too lazy to type/remember python -m SimpleHTTPServer as that does pretty much the same thing this does.

example run

$ pwd
/Users/moon/workspace/seanmoon.com
$ httplz
Document root is /Users/moon/workspace/seanmoon.com, using port 2999
[2011-07-22 06:47:31] INFO  WEBrick 1.3.10
[2011-07-22 06:47:31] INFO  ruby 1.9.2 (2011-02-18) [x86_64-darwin10.8.0]
[2011-07-22 06:47:31] INFO  WEBrick::HTTPServer#start: pid=88585 port=2999

installation

for system wide use

$ cd /usr/local/bin && curl -L http://github.com/seanmoon/httplz/tarball/master | gunzip | tar xvf - --strip=2

otherwise (you'll need rvm or your rubygem installation's bin directory in your PATH)

$ gem install httplz

usage

Usage: httplz [directory] [options]
    -p, --port [PORT]                Port to run WEBrick on
    -h, --help                       Print this help text
  • if no directory is specified, the current working directory will be used.
  • the default port is 2999

thanks