max li
max li

Reputation: 2457

What is the mongodb server url for meteor

I am using PhpStorm editor with mongoDB plugin, I was wondering what should be the mongodb server url,so I could monitor my mongoDB's activities directly from PhpStormenter image description here

Upvotes: 1

Views: 685

Answers (2)

Steffo
Steffo

Reputation: 622

It depends if you set MONGO_URL. If you run meteor locally with out setting MONGO_URL try

mongo localhost:3001/meteor

If you have deployed your app to meteor.com try

meteor mongo yourapp.meteor.com --url

This will return the MONGO_URLso that you can monitor/backup/restore your DB. Eg

mongodb://[email protected]:27017/yourapp_meteor_com

Upvotes: 3

Stephan
Stephan

Reputation: 1279

When running MongoDB using the meteor command line you can access the database at localhost:3001. The database name is meteor and there is no need for credentials.

Upvotes: 1

Related Questions