summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js11
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",