Skip to content

cptaffe/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serve

A golang command line utility file server.

Install

You must have the go tool installed to compile serve.

go build serve.go
mv ./serve /usr/local/bin

Usage

Usage is very simple, open a terminal, cd into the directory you would like to serve, and run serve.

# serve current directory at :8080
$ serve

You can also optionally add a port number. Note: you must be root to use port 80.

# optionally with port number
$ sudo serve 80

There are also other options, -p for port number, -d for directory, and -s for an address sub-dir.

# serve ~/go at :8080/h/
$ serve -p 8080 -d ~/go -s /h/

License

If you've never seen an MIT license, check out the LICENSE.

Authors

  • Connor Taffe (@cptaffe)

About

A golang command line utility file server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages