Navigation Menu

Skip to content

Commit

Permalink
Control pretty print by self
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 28, 2014
1 parent 45b7c8f commit afb48cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/droonga-http-server
Expand Up @@ -94,6 +94,12 @@ if (options.pidFile) {
var application = express();
var server = http.createServer(application);

application.set('json spaces', 1);
var env = process.env.NODE_ENV || 'development';
if (env == 'production') {
application.set('json spaces', -1); // disable pretty print!
}

var MemoryStore = session.MemoryStore;
var sessionStore = new MemoryStore();

Expand Down

0 comments on commit afb48cc

Please sign in to comment.