Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
instant http
Scala
branch: master
Failed to load latest commit information.
notes few readme and notes tweeks
project pubTo
src/main speedier resolution times
.gitignore just enough
README.md few readme and notes tweeks

README.md

unplanned

My simple answer to python -m SimpleHTTPServer using unfiltered

install

Create a conscript

cs softprops/unplanned

This will create an executable called up in ~/usr/bin

or you can go old school and create a self contained executable by hand

git clone git://github.com/softprops/unplanned.git && cd unplanned
sbt update assembly
cp target/scala_2.8.1/unplanned.jar path/to/somewhere/in/$PATH
# put it in a shell script
echo 'java -Xmx512M -jar `dirname $0`/unplanned.jar "$@"' > path/to/somewhere/in/$PATH/up

usage

serve anything from anywhere

cd path/to/anywhere/
up

This will start an http server serving static content from your current directory* on 0.0.0.0:{the_next_available_port}

cd path/to/anywhere/
up -p 1234

This will start an http server the same as above but with an explicit port 1234

  • The directory must be writable. The unplanned server writes an empty temp file in the current working directory called .here for context

doug tangren (softprops) 2011

Something went wrong with that request. Please try again.