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

Path variables not working on 0.6.5 e.g. METEOR_SETTINGS #1381

Closed
manuel-schoebel opened this issue Aug 28, 2013 · 2 comments
Closed

Path variables not working on 0.6.5 e.g. METEOR_SETTINGS #1381

manuel-schoebel opened this issue Aug 28, 2013 · 2 comments

Comments

@manuel-schoebel
Copy link

Hey, i cannot get it working after i updated to 0.6.5.

I created a new meteor project.

I have a start.sh script that looks like this.

export METEOR_SETTINGS=$(cat ./settings.json)
meteor

settings.json:

{
  "public":{
    "bla":"blup"
  }
}

Meteor.settings on the client is undefined. It works if i add the settings json file via "--settings", but unfortunately this is not what i need.

The PORT environment variable or NODE_ENV also does not work for me.

Adding some random stuff like "export MY_ENV_VAR=foo" however works.

Am i missing s.th.? It all worked well before. I would really appreciate your help.

Thx!

@jagill
Copy link
Contributor

jagill commented Aug 28, 2013

Iirc, the export METEOR_SETTINGS method only works when you are running it in a production setting (ie, using node bundle/main.js. Otherwise, you have to use --settings.

@manuel-schoebel
Copy link
Author

Hmm, thats interesting ;-) Thx!

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

2 participants