I set MONGO_URL at package.json.
"scripts": {
"install": "node npm-rebuild.js",
"meteor": "set MONGO_URL=mongodb://127.0.0.1:27017/test &&meteor --port 3000"
}
when I run the app ,it always starts a local MongoDB instance and automatically connects to it. It looks like the environment variable I set didnt take effect.
Need to explain , my app is version 1.5 . For some reason ,I couldnt upgrade it . The nodejs version is 14 , npm is 6. I install the latest version of meteor . My server system is centos 7.
As I am a Chinnese developer, the data about meteor in China is very limited. so I hope some kind people can provide advice.Thank you !