Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some comments

  • Loading branch information...
commit d8af2b5537d2d22e1dc745c38c00c33c57ed4bda 1 parent 6223cc3
@ArtS authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 index.js
View
6 index.js
@@ -3,8 +3,10 @@ var sys = require('sys'),
p = require('child_process'),
path = require('path');
-// You can force node-config to pick up config file different to your hostname.
-exports.hostname = null;
+// You can force node-config to pick up config file different to your hostname,
+// by setting .hostname to the name of desired config file (omitting .js), i.e.
+// conf.hostname = 'my-host'; // assuming that ./conf/my-host.js exists
+exports.hostname = null;
// By default node-config is going to look for 'conf' folder in curent directory.
// You can change that by changing the currentDirectory property
Please sign in to comment.
Something went wrong with that request. Please try again.