From a89a23cfc47bd6d473b93dcc60ad02b15d6662ac Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Mon, 14 May 2018 15:16:43 -0400 Subject: [PATCH] Add a comment about running in production ref #106 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index fe0e395..9a239f9 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,13 @@ In order to see your site in action, run Hugo's built-in local server. Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser. +## Production + +To run in production (e.g. to have Google Analytics show up), run `HUGO_ENV=production` before your build command. For example: + +``` +HUGO_ENV=production hugo +``` ## Contributing