Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
/ serve Public archive
forked from fogleman/serve

Simple Go file server for command line development use, a la Python's SimpleHTTPServer.

License

Notifications You must be signed in to change notification settings

danieleloscozzese/serve

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

serve

Simple Go file server for command line development use, a la Python's SimpleHTTPServer.

Installation

go get -u github.com/fogleman/serve

Run the Server

By default, serves the current working directory on port 8000. If $GOPATH/bin is on your PATH, you can run it anywhere.

$ serve

http://localhost:8000/

Command-line Arguments

Flag Default Description
-port 8000 port to listen on
-dir "." directory to serve
-cors false true to enable CORS (via Access-Control-Allow-Origin: *)

About

Simple Go file server for command line development use, a la Python's SimpleHTTPServer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%