Install
A light-weight Go server that hosts the file directory it's in (HTML or otherwise) over HTTP. Inspired by simple Unix programs that do one thing well.

go-live

Can be used for local development or production static-site serving as a run-your-own Github-pages. By default, go-live hosts the directory it is executed in.
Based on JavaScript's famous live-server utility, but much faster, lighter (4 MB), and doesn't require Node.js to be installed. Can also be used for production file serving.
Supports Linux, Windows, and Mac, as well as ARM and x64. Please leave all comments, questions, or suggestions in the Github issues.​

On MacOS (with Brew)

1
brew tap antsankov/go-live && brew install go-live
Copied!

On MacOS (without Brew)

1
$ curl -LJO https://github.com/antsankov/go-live/releases/download/v1.0.0/go-live-mac.zip
2
$ unzip -d /usr/local/bin/go-live && chmod +x /usr/local/bin/go-live
3
$ go-live
Copied!
    ARM64 Mac (new M1 chip) is supported. Download file from the releases page, chmod +x, and then move it to your path. Brew coming soon.

On Linux (using Snapcraft)

1
snap install go-live
Copied!

Linux 64-Bit (Ubuntu/RHEL/etc.):

1
$ wget https://github.com/antsankov/go-live/releases/download/v1.0.0/go-live-linux-x64 -O /usr/bin/go-live
2
$ chmod +x /usr/bin/go-live
3
$ go-live
Copied!
    Deb packages coming soon! (Help wanted)
    Need ARM? Check the releases page.

Docker

docker pull antsankov/go-live
To run (will serve current directory on port 9000):
docker run --rm -v "${PWD}":/workdir -p 9000:9000 antsankov/go-live go-live

Go Get (must have Go installed)

1
GO111MODULE=on go get github.com/antsankov/go-live
Copied!

Windows

    Chocolatey coming soon! (Help wanted)
    Make sure when running that all necessary ports are open and user has permissions (Help wanted)
    QT based front-end? (Help wanted)
Last modified 9mo ago
Copy link