Why is my settings.json code not working

Hello!
So im really new to meteor, and im trying to deploy my app. So I created a settings.json file and put this code in it:


 "galaxy.meteor.com": {
    "env": {
        "ROOT_URL": "http://blueslipgang.meteorapp.com/",
        "DEPLOY_HOSTNAME":"galaxy.meteor.com",
        "MONGO_URL":"mongodb+srv://abidmir:<password>@cluster0.6fk1x.mongodb.net/Meteor?retryWrites=true&w=majority"
}
}

but every time i try to deploy it useing

DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy <myapp>.metoerapp.com --settings settings.json

i get this message:

Errors prevented deploying:
While preparing to deploy:                    
settings.json: parse error reading settings file

what am I doing wrong?

Thank you!

There is a comma missing after the second env entry.

I recommend using a linter and a prettyfier in your editor, like eslint and prettier in VSCode.

I fixed it and it still didn’t work. Im really confused as to why its not working.

Hi abidmir222!

Your settings.json files should start with {}.

So try this snippet:

{
"galaxy.meteor.com": {
    "env": {
        "ROOT_URL": "http://blueslipgang.meteorapp.com/",
        "DEPLOY_HOSTNAME":"galaxy.meteor.com",
        "MONGO_URL":"mongodb+srv://abidmir:<password>@cluster0.6fk1x.mongodb.net/Meteor?retryWrites=true&w=majority"
}
}
}