Skip to content

softprops/unplanned

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

About

instant http

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages