Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 689 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 689 Bytes

webit

Simple command to start a web server pointing at a directory of static files.

This is heavily inspired by @SimbCo's httpster project.

Installation is done via go get, which is installed along with Go on most platforms.

go get github.com/cfchris/webit && go install github.com/cfchris/webit

Then from any directory where you want to have an http service running, just run

$GOBIN/webit

That will start up a web server on port 3333 and let you serve any static content you wish. If you want to change the port or directory that the server runs from pass in the -p or -d options

$GOBIN/webit -p 8080 -d /home/someuser/somedir