From 89571a272885cce6a691dad393b6d35058d3fafd Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Wed, 12 Mar 2014 16:49:59 +0800 Subject: [PATCH] debug false by default --- conf/default.conf.js | 4 ++-- conf/development.conf.tmpl.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/default.conf.js b/conf/default.conf.js index 3ae61fd..bd7519f 100644 --- a/conf/default.conf.js +++ b/conf/default.conf.js @@ -4,7 +4,7 @@ var util = require('util'); * some default settings */ module.exports = { - debug: true, + debug: false, site_name: '豆瓣酱', @@ -29,7 +29,7 @@ module.exports = { port: '6379', host: '127.0.0.1', prefix: 'doubanj_', - // only set default ttl when there is a memory limit + // only set default ttl when there is a memory limit ttl: 7 * 24 * 60 * 60, // in seconds }, diff --git a/conf/development.conf.tmpl.js b/conf/development.conf.tmpl.js index 1a2fe18..e697569 100644 --- a/conf/development.conf.tmpl.js +++ b/conf/development.conf.tmpl.js @@ -3,6 +3,7 @@ */ module.exports = { site_name: '豆瓣酱 - 开发模式', + debug: true, douban: { limit: 40, // request limit per minute key: '11111', // your douban api key (client_id)