I would like to use my own MongoHQ database to use when deploying a Meteor app using meteor deploy
. The documentation explains how to do this when deploying and running on a machine I control:
$ PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js
But the documentation seems a bit sparse on how to do this with meteor deploy
. Is it possible?
EDIT: I tried following http://docs.meteor.com/#meteor_settings and added a settings.json file and put in it:
{"MONGO_URL" : "mongodb://user:[email protected]:10000/mydatabase"}
then deployed with
meteor deploy myappname.meteor.com --settings settings.json
but the deployed version doesn't seen to be using my database
The Video Meteor Database is currently kept on the IMONET Homepage and contains video data of over 2.6 Mio single station meteors recorded in 630,000 hours effective observing time spread over 5,700 nights. The oldest records date back to 1993.
Meteor stores data in collections. To get started, declare a collection with new Mongo.
I ended up deploying to Heroku instead using the buildpack. Then I could set the variables using the heroku configs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With