diff options
Diffstat (limited to 'app/index.js')
| -rw-r--r-- | app/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 }; |
