The simplest directory serving web server.
The program is written in Go but having the Go compiler installed in not a requirement as the binaries available below are self sufficient.
How to get it
go get github.com/kidoman/serve
brew install kidoman/tools/serve
will get the job done. Also, you can download precompiled releases to place in your
PS: We should hopefully be in the official brew repo soon. Then a
brew install serve will be sufficient.
Anything you can run a precompiled binary on (i.e. Windows, Mac OS X, Linux, etc.)
How to use
Provided you have
serve under your $PATH somewhere:
This will serve the current directory at
serve -p 9999 ~/my-awesome-blog
Will serve the contents of the folder
serve -x /my ~/precious
You guessed it,
http://localhost:5000/my is now wired up to
serve -o ~/sesame
~/sesame and opens the URL in your favorite browser while it is at it.
- HTTPS support