From 34caa8159b3f44d7f60a742889fd84ff8c162c23 Mon Sep 17 00:00:00 2001 From: Tim Stallard Date: Fri, 21 Oct 2016 16:56:21 +0100 Subject: [PATCH] Added environments to disable livereload for production, updated readme --- README.md | 3 ++- docpad.js | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b47d94d..d8352d5 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ This is the code behind timstallard.me.uk, which is built using Docpad. (note: you'll need to use `docpad.cmd` on Windows, due to an bug, since a plain js docpad config file is being used, rather than coffeescript) ### To compile the site for deployment: -1. Run `docpad generate` +1. Run `docpad clean` to remove dev files +2. Run `docpad generate --env=static` © Tim Stallard 2016 diff --git a/docpad.js b/docpad.js index c404ec5..60447fe 100644 --- a/docpad.js +++ b/docpad.js @@ -37,6 +37,9 @@ var docpadConfig = { formatted: "formattedDate" } ] + }, + livereload: { + enabled: true } }, templateData: { @@ -62,6 +65,15 @@ var docpadConfig = { "https://fonts.googleapis.com/css?family=Open+Sans" ]); } + }, + environments: { + static: { + plugins: { + livereload: { + enabled: false + } + } + } } }