Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to pass --settings parameter to be able to access public settings on the client #23

Open
darkbasic opened this issue May 5, 2017 · 5 comments

Comments

@darkbasic
Copy link
Collaborator

I tried to set an evironment variable just in case:

{
  "runtime": {
    "DDP_DEFAULT_CONNECTION_URL": "http://domain.tld:3000",
    "ROOT_URL": "http://domain.tld:80",
    "METEOR_SETTINGS": "{\"public\": {\"facebook\": {\"permissions\": [\"basic_info\", \"user_interests\", \"user_activities\", \"read_friendlists\"], \"profileFields\": [\"name\", \"gender\", \"location\"]}}}"
  },
  "import": [

  ]
}

but obviously it didn't work because meteor expects a --settings parameter and doesn't work with an environment variable.

@darkbasic
Copy link
Collaborator Author

By the way I don't think that having to specify a settings parameter a second time in the client is a good design decision. Meteor should probably publish public settings using DDP instead. I don't know the innings so excuse me if I don't know how it's supposed to work.

@lnmunhoz
Copy link

@darkbasic Did you figure it out how to pass settings to the bundler?

@darkbasic
Copy link
Collaborator Author

darkbasic commented Jul 19, 2017

No, unfortunately I didn't look at a possible solution, I just worked it around.

@bo01ean
Copy link

bo01ean commented Dec 19, 2017

Urigo/Ionic2CLI-Meteor-WhatsApp#73 (comment)

Can I add this if anyone is interested?

@AlexeyZebka
Copy link

AlexeyZebka commented Sep 10, 2018

try this

{
    "runtime": {
    "DDP_DEFAULT_CONNECTION_URL": "http://domain.tld:3000",
        "ROOT_URL": "http://domain.tld:80",
        "PUBLIC_SETTINGS": {
        "facebook": {
            "permissions": ["basic_info", "user_interests", "user_activities", "read_friendlists"],
            "profileFields": ["name", "gender", "location"]
        }
    }
},
    "import": []
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants