Koushik Roy
Koushik Roy

Reputation: 61

Meteor Initiate with Remote MongoDB on Windows

Working on a project where I need to connect my meteor project to a remote MongoDB server from windows. Where do I set the environment variable(MONGO_URL="DB LINK") on windows?

I have already done it from OSX from the terminal setting the environment variable MONGO_URL="Mongo DB Link" meteor. But can't seem to do it on windows.

Thanks in advance

Upvotes: 0

Views: 330

Answers (1)

Jogibaer
Jogibaer

Reputation: 9

Open a Commandline Interface in Windows and type following command

C:\ SET MONGO_URL=mongodb://user:password@host:port/dbname

This works for me

Upvotes: 0

Related Questions