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

fsouza/srvdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Command line tool to serve current directory as an http server (like python's SimpleHTTPServer, but faster)

Topics

Resources

License

Stars

10 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages