Permalink
Browse files

Added hostname parameter description into README.md

  • Loading branch information...
1 parent 4476ac0 commit 7226853118228d2dc15842fb85514973f89a4ac8 Artem Skvira committed Jan 17, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
14 README.md
@@ -60,6 +60,20 @@ Loading of configuration is as simple as this:
}
);
+For testing purposes you can override your hostname by supplying second argument
+to initConfig() function, jsut like that:
+
+ conf.initConfig(
+ function(err) {
+ // ...
+ },
+ 'redefined-host-name'
+ );
+
+which will force node-config to load conf/redefined-host-name.js instead of your
+host-specific config.
+
+
## Setup
You need to have a `conf` directory in your project root folder (where your

0 comments on commit 7226853

Please sign in to comment.