From 29c94bced75f3966b9ff7f57cd5d68dddc4eb98a Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Tue, 12 May 2015 18:22:53 -0400 Subject: Alias production flag in config --- app/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/index.js b/app/index.js index 5ac88dd..2de4f1b 100644 --- a/app/index.js +++ b/app/index.js @@ -36,11 +36,13 @@ function OKCMS(options) { var templateRoot = options.templateRoot || 'templates'; var adminTemplateRoot = options.templateRoot || path.join(__dirname, '../themes/okadmin/templates'); - var debug = options.debug || false; + var debug = !!options.debug; + var production = !!options.production; var metaUser = options.meta || {}; var metaDefault = { project: 'OKCMS', + production: production, debug: debug }; -- cgit v1.2.3-70-g09d2