diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-05-12 18:22:53 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-05-12 18:22:53 -0400 |
| commit | 29c94bced75f3966b9ff7f57cd5d68dddc4eb98a (patch) | |
| tree | 11435aa745440879cf0b435891c019aba5281052 /app | |
| parent | 4994d8e8361b75b7578ee130b205efe18c6d60d6 (diff) | |
Alias production flag in config
Diffstat (limited to 'app')
| -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 }; |
