So, on my local machine, when I download the Meteor application, I pass the json file to specify application parameters, such as
meteor --settings local.json
It seems to work. However, as indicated in the meteor.com documentation ( http://docs.meteor.com/#deploying ) when deploying the application in your own infrastructure, you need to bundle the application using a "meteor package" and then run it as an instance of node, for example So
PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js
I can do this and the application is deployed to my server. However, I am not sure how I should pass the json file with the configuration settings.
PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp --settings prod.json node bundle/main.js PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js --settings prod.json
Is there a --settings thing meteor or thing node? If this is the last, how can I go in my JSON file?
Diskdrive
source share