Windows, set MONGO_URL as environment variable

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

See the following topic…

1 Like

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

1 Like