Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (17 loc) · 642 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 642 Bytes

srvdir

srvdir server the current directory via HTTP.

Example of use:

% ls
index.html
post.html
style.css
% srvdir -http=:8080

This will serve the files index.html, post.html and style.css in the port 8080, so you can point your browser to the url http://localhost:8080/post.html and see the post.html file contents.

It's similar to Python's SimpleHTTPServer, but faster.

Install

To install srvdir from source, you'll need the latest Go and configured (see https://golang.org/doc/install) installed, and run from terminal:

% go get github.com/fsouza/srvdir

Make sure $(go env GOPATH)/bin is in your path.