node.js - How to get Meteor's MongoDB URL from javascript -



node.js - How to get Meteor's MongoDB URL from javascript -

i'm writing meteor smart bundle wrapper npm module called agenda. agenda naturally doesn't know it's working meteor, need manually give mongodb url. can url typing meteor mongo -u, i'd script automatically users of plugin don't have worry changing manually. how can this?

mongo url stored in environment variable called mongo_url. in meteor can access env variables process.env object (on server). can process.env.mongo_url property

javascript node.js mongodb meteor

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -