jamesadney / serve

Serve a directory over HTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serve

Like python -m SimpleHTTPServer, plus more!

Serve a directory on the host and port of your choice.

Usage

$ serve
Serving '/home/james/' on 'http://127.0.0.1:8000'

$ serve -p 1234
Serving '/home/james/' on 'http://127.0.0.1:1234'

$ serve /usr/share/doc/python3-doc/html
Serving '/usr/share/doc/python3-doc/html/' on 'http://127.0.0.1:8000'

$ serve -h 0.0.0.0
Serving '/home/james/' on 'http://0.0.0.0:8000'

Install

go get github.com/jamesadney/serve

About

Serve a directory over HTTP

License:MIT License


Languages

Language:Go 100.0%