diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-04-14 20:32:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-04-14 20:32:08 -0400 |
| commit | c98560cca095ef27b909ac47baf843362bffb28d (patch) | |
| tree | 21b5d4f88d1c7416e41b60ce448bf6a5ef8073da /examples/index.js | |
| parent | 21b7769c2a57d7e9c62318e911a45a6edebc0912 (diff) | |
OKWebhook module for receiving pushes from git
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/index.js b/examples/index.js index 3bbed28..efbfc38 100644 --- a/examples/index.js +++ b/examples/index.js @@ -1,10 +1,13 @@ var okcms = require('..'); +var isProduction = process.env.OK_PRODUCTION === 'true' + var app = okcms.createApp({ root: 'public', - debug: true, + debug: !isProduction, + production: isProduction, schemas: { page: { @@ -47,6 +50,12 @@ var app = okcms.createApp({ audio: { allowed: true, preserveFilename: true, maxbytes: 100*1024*1024 }, }, + webhook: { + active: false, + secret: 'test', + command: '/path/to/build.sh', + }, + example: { lib: require("./lib/okexample"), stuff: "things", |
