forked from bdotdub/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted config to a module. Freeing the dependency on fs and the us…
…e of readFileSync.
- Loading branch information
Dan Thurman
committed
Jun 15, 2011
1 parent
67d809c
commit fdb97bb
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = config = { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"name" : "Hummingbird", | ||
|
||
"tracking_port" : 8000, | ||
"dashboard_port" : 8080, | ||
|
||
"mongo_host" : "localhost", | ||
"mongo_port" : 27017, | ||
|
||
"udp_address" : "127.0.0.1", | ||
"udp_port" : 8000, | ||
|
||
"enable_dashboard" : true, | ||
|
||
"capistrano" : { | ||
"repository" : "git://github.com/mnutt/hummingbird.git", | ||
"hummingbird_host" : "hummingbird.your-host.com" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This creates a global "config" object. If that's not your intent, you should do
var config = module.exports = { ...
If that is your intent, it'd be better to do
module.exports = global.config = { ...
so that it's clear that it's not an accident.