From 278255323166dda6de22e5f4ddde1b20fcd6d568 Mon Sep 17 00:00:00 2001 From: Sayem Chowdhury Date: Thu, 2 Nov 2017 18:11:18 +0600 Subject: [PATCH] readme: Update build instructions (#1916) * Update build instruction This changes add proper an easy instruction for building. * Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7fa446f73..2d42d2e6c 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,12 @@ Caddy binaries have no dependencies and are available for every platform. Get Ca customize your build in the browser - **[Latest release](https://github.com/mholt/caddy/releases/latest)** for pre-built, vanilla binaries -- **go get** to build from source: `go get github.com/mholt/caddy/caddy` (requires Go 1.8 or newer) - to build with proper version information (required when filing issues), `cd` to the `caddy` folder and use `go get github.com/caddyserver/builds` followed by `go run build.go`. + +## Build +To build from source you need **[Git](https://git-scm.com/downloads)** and **[Go](https://golang.org/doc/install)** (1.8 or newer). Follow these instruction for fast building: + +- Get source `go get github.com/mholt/caddy/caddy` and then run `go get github.com/caddyserver/builds` +- Now `cd` to `$GOPATH/src/github.com/mholt/caddy/caddy` and run `go run build.go` Then make sure the `caddy` binary is in your PATH.