Unverified Commit 1f9fdd20 authored by Jacob Gunther's avatar Jacob Gunther Committed by GitHub
Browse files

Undid changes to server.js

parent cdd0cf37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ var connect_rate_limit = require('connect-ratelimit');
var DocumentHandler = require('./lib/document_handler');

// Load the configuration and set some defaults
var config = require('./config.json');
var config = JSON.parse(fs.readFileSync('./config.js', 'utf8'));
config.port = process.env.PORT || config.port || 7777;
config.host = process.env.HOST || config.host || 'localhost';