A simple HTTP server for serving static files.
Using Homebrew:
brew install probablykasper/tap/serve
Installing from source:
go get github.com/probablykasper/serve
Download binaries
Serve 1.0.0
USAGE:
serve [dir] [options...]
EXAMPLE:
serve -p 80 ./website
OPTIONS:
--address value, -a value The IP address or hostname of the interface (default: "0.0.0.0")
--port value, -p value The port to listen on (default: 2233)
--verbose, -V Log requests
--help, -h Show help menu
--version, -v print the version
- Install Go
- Run
go mod vendor
to install dependencies - Start by running
make run
orgo run serve.go
Start
make run
Build & release the project (assuming you are developing on macOS)
make clean build_macos build_linux release_macos release_linux