From b41595b306e8befef6bb542b9e66ef76c5d54dbc Mon Sep 17 00:00:00 2001 From: Alexander Horner <33007665+alexhorner@users.noreply.github.com> Date: Tue, 24 Apr 2018 07:24:17 +0100 Subject: [PATCH] Updated configuration file name Renamed the configuration file to be a JSON rather than a JS so that multi-file editors such as Visual Studio Code and Notepad++ which rely on the file type for syntax highlighting and correction work properly. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 57bd3da..8d148db 100644 --- a/server.js +++ b/server.js @@ -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 = JSON.parse(fs.readFileSync('./config.js', 'utf8')); +var config = JSON.parse(fs.readFileSync('./config.json', 'utf8')); config.port = process.env.PORT || config.port || 7777; config.host = process.env.HOST || config.host || 'localhost';