Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 509 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 509 Bytes

serve

A simple Web Server to serve your static files on a URL

Usage

serve // serves the files in current directory on a default URL(localhost:4000)
or
serve ./foobar // serves the files in `foobar` directory

If you do not want to open browser by default, you can use -s flag.

You can serve on a specific local IP as serve -a=127.0.0.1:8000

Build from source

  • Clone this repository
  • Run go build
  • Copy the serve output file to $PATH(like /usr/local/bin for unix systems)