Get meteor shell to use my mongo database instead of built in


#1

Can I get meteor shell to use my mongo database specified in MONGO_URL? When I run my app with meteor run it works just fine, but when I try to open the meteor shell to test some things it is using the build in mongo db. Thanks


#2

It should use MONGO_URL. This sounds like an environment issue. Are you sure you have the MONGO_URL variable defined in your terminal before you run meteor shell? Since you’re running that command in another window/tab/shell, you’ll want to make sure you have it defined for that process as well.


#3

Hmm. seems to be working now. I swear I double checked that. Thanks though