forked from meteor/meteor
-
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.
Find mongo and kill it dead on --once exit
- Loading branch information
Naomi Seyfer
committed
Dec 6, 2012
1 parent
29a0391
commit 24e70fd
Showing
3 changed files
with
45 additions
and
26 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
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 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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
Meteor = { | ||
isClient: false, | ||
isServer: true, | ||
settings: JSON.parse(process.env.METEOR_SETTINGS) | ||
isServer: true | ||
}; | ||
|
||
try { | ||
Meteor.settings = JSON.parse(process.env.METEOR_SETTINGS); | ||
} catch (e) { | ||
// If the settings aren't JSON, just treat them as a string, or | ||
// undefined, or whatever they are. | ||
Meteor.settings = process.env.METEOR_SETTINGS; | ||
} | ||
|