Windows, set MONGO_URL as environment variable


#1

I have two meteor apps sharing the same MONGO Database

I am trying to set the environment variable MONGO_URL on windows but seems I dont have it quite right, it works fine on OSX

set MONGO_URL="mongodb://localhost:3001/meteor"

then I start my second meteor app with:

meteor --port 5000

but it always fails with:

Error: invalid schema, expected mongodb


#2

See the following topic…


#3

thanks so much! This should work, havent tested it yet. Loving the cross-env tip as well.