Using the Meteor.settings function
Meteor recently added a new Meteor.settings object since version 0.5. And in an extremely annoying manner, they incorrectly explained, for example, in their documentation, how to configure the parameters.
In my application, I have a text file (in the root directory) called "settings.json":
{
"initURL" : "http://localhost:60326/"
}
But when I try to run the application using meteor --settings settings.json
, I get the following error:
undefined:1
{
^
SyntaxError: Unexpected token 
at Object.parse (native)
at Object.exports.getSettings (C:\Program Files (x86)\Meteor\app\meteor\run.
js:537:10)
at start_server (C:\Program Files (x86)\Meteor\app\meteor\run.js:239:28)
at exports.run.restart_server (C:\Program Files (x86)\Meteor\app\meteor\run.
js:655:21)
at C:\Program Files (x86)\Meteor\app\meteor\run.js:726:9
at Socket.exports.launch_mongo (C:\Program Files (x86)\Meteor\app\lib\mongo_
runner.js:187:9)
at Socket.EventEmitter.emit (events.js:93:17)
at Pipe.onread (net.js:391:31)
Anyone can figure out what might be wrong with the settings of my Meteor app?
+3
source to share