How to config "MONOGO_URL" on setting.js?

I use local “Mongo”.
So I use MONGO_URL=mongodb://localhost:27017/dbname metetor cmd to run Meteor all the time.
Could I config MONGO_URL within setting.js per project?
And then I can run Meteor by meteor cmd.
Please help me.

no that’s not possible (AFAIK).
Your best bet is to use a shell script.
If you use macOS or Linux, this is one way:
A .sh file that contains this:

MONGO_URL=mongodb://localhost:27017/dbname meteor

You then run the .sh file from inside your project folder.

Or if you use Windows, then a .bat file is what you would use.

1 Like

Thanks for your reply.
Now I config it on package.json

  start: "MONGO_URL=mongodb://localhost:27017/dbname metetor"
1 Like

Great, that was a much better solution!