I searched this title many times, trying to find a modern solution for deploying my local Meteor Mongo db in Heroku. So I am posting this answer here for those who do the same, although the question really is to set MONGO_URL.
Here is an updated solution (Meteor 1.3.2.4) for pushing the local Meteor Mongo database in Heroku with (free) mLabs. My application did not use a meteorite, and it used a buildpack horse.
1. make a dump of your local mongo db
In the terminal (NOT mongo shell) in the folder of your application,
mongodump --port=3001 -o ../dump
2. move the db files from "dump / your-db-name" to "dump"
In my local meteor instance, the / dump folder was placed in a folder above my application, so the "dump" was in the same directory as my application folder. The "dump" contains a folder with the name after my database ("dump / my-database-name /"). This causes the following script to fail with the mongorestore error, "I donβt know what to do with" my-database-name ". To prevent the error, move all the files in the" my-database-name "folder to" dump ", then delete the folder" my-database-name ".
By default, your database name is "meteorite", so if you have not changed it, look for "dump / meteor /".
3. in mLabs, if you have not already done so, create a user with administrator rights. For me, the default user assigned during setup did not work.
4. Push your resettable database onto mLabs for your Heroku application. . It is assumed that you added the mLabs plugin to your Heroku application and set "MONGO_URL" to the Heroku application configuration. If this is not done, they must be performed first.
In the terminal (and not in the mongo shell), go from the application directory to the directory where the dump directory is located. In my case, it was just "cd ../".
Get your default βimportβ script by going to the mLabs plugin for your Heroku application and going to the βToolsβ tab. This script did not work for me, but it might work for you. If this is not the case, paste this script, while the variables replace the brackets (also replace the brackets).
mongorestore -h [your mLabs value] -d [your mLabs default user name] -u [your mLabs created user name] -p [your mLabs created user password]
After running the script, you can refresh the mLabs Collections tab and view your details.
Good luck :) Hope this helps someone!