Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I specfiy a MongoHQ database when deploying Meteor app?

Tags:

mongodb

meteor

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

like image 920
nickponline Avatar asked Jan 14 '13 23:01

nickponline


People also ask

What is Meteor 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.

What is Meteor in MongoDB?

Meteor stores data in collections. To get started, declare a collection with new Mongo.


1 Answers

I ended up deploying to Heroku instead using the buildpack. Then I could set the variables using the heroku configs.

like image 164
nickponline Avatar answered Sep 28 '22 06:09

nickponline