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

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

License

Notifications You must be signed in to change notification settings

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy