From 1f49a02913c42fe6f9f89a01a75653f893ffcf9c Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 8 Nov 2012 21:25:41 +0000 Subject: [PATCH] Example config.js file --- README.md | 4 +++- config.js => config.example.js | 0 server/kiwi.js | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) rename config.js => config.example.js (100%) diff --git a/README.md b/README.md index ece5a39..1ea30bc 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@ For more information see http://kiwiirc.com or an example of the application can `$ node client/assets/dev/build.js` -3. Edit the configuration file as needed: +3. Copy and edit the configuration file as needed: + + `$ cp config.example.js config.js` `$ nano config.js` diff --git a/config.js b/config.example.js similarity index 100% rename from config.js rename to config.example.js diff --git a/server/kiwi.js b/server/kiwi.js index 39edb39..0de98a5 100755 --- a/server/kiwi.js +++ b/server/kiwi.js @@ -42,8 +42,8 @@ if (process.argv.indexOf('-f') === -1 && global.config.log) { // Make sure we have a valid config file and at least 1 server -if (Object.keys(global.config).length === 0) { - console.log('Couldn\'t find a valid config file!'); +if (!global.config || Object.keys(global.config).length === 0) { + console.log('Couldn\'t find a valid config.js file (Did you copy the config.example.js file yet?)'); process.exit(1); } -- 2.25.1