- Download the latest armor release for your platform from https://github.com/labstack/armor/releases
- Copy the armor binary to somewhere on the
PATHso that it can be executed e.g.
brew install armor
go get -u github.com/labstack/armor/cmd/armor
docker pull labstack/armor
armor in your terminal
❯ armor ___ / _ | ______ _ ___ ____ / __ |/ __/ ' \/ _ \/ __/ /_/ |_/_/ /_/_/_/\___/_/ v0.3.3 Uncomplicated, modern HTTP server https://armor.labstack.com ________________________O/_______ O\ ⇛ http server started on [::]:8080
This starts armor on address
:8080, serving the current directory listing using
the default config. Go to http://localhost:8080 to browse the directory.
Armor can also be run as in a Docker:
docker run \ -p 8080:80 \ -v <config_file>:/etc/armor/config.yaml \ -v <volume_to_mount>:/var/www \ labstack/armor -c /etc/armor/config.yaml
-phttp listen port
-vprint the version