-
Notifications
You must be signed in to change notification settings - Fork 264
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
Heroku failing to find settings.json on launch #31
Comments
What is the value of It sounds like something about your shell configuration may mean the |
Value of
If that's not the recommended approach, what is a way to ensure that my app on Heroku grabs the contents of
|
As far as I know, you can't set it up to pickup I would recommend either 1) figuring out why Option 2 there is kind of a pain, and more of a temporary bandaid than a real fix. For actually figuring out why the README command isn't working for you, what shell do you use, and what environment are you working in? When you run |
Running on Windows - but have access to commands like cat/ls/etc...
So what really should happen is the output of |
Ah, are you using PuTTY, or a different way of getting unix tools on Windows? Are you running these commands in PowerShell, or a bash shell, or something else? Not knowing the specifics, you could try some variants of the
|
Getting closer - had to switch to powershell from "cmder". The output of the file is interpreted but the quotes are stripped around the json keys, which looks to be happening due to heroku and not powershell.
This is the output when running:
However when running: Looking further into this (hoping keeping the conversation here will help others on Windows who don't want to manually get the contents of the file, minify it, and set it each time) |
Even manually running:
... fails, as the quotes inside are stripped out. Need to instead manually escape each quote like this:
Fun times. |
Did you try the original form Yeah, sorry it's such a pain: Window's command line stuff is not usually terribly pleasant, and I don't have much experience with it. You could write a ruby script to do the hard stuff for you, of course, which may be a useful thing to do if you expect to change settings often. |
|
@haotangio Very thanks man! Why it works only in git bash CLI? |
I've posted about this on stack overflow.
I've ensured config:set is
METEOR_SETTINGS="$(cat settings.json)"
and Heroku fails to find it at runtime.Not sure if it's buildpack related, but basically Heroku is not finding my
settings.json
while following the steps laid out in the readme here.The text was updated successfully, but these errors were encountered: