-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
config: it's not possible to override defaults via argv #7492
Comments
refs TryGhost#7492 - this is just a temporary solution
refs #7492 - this is just a temporary solution
refs TryGhost#7492 - this is just a temporary solution
refs TryGhost#7492 - this is just a temporary solution
OK. Really weird. nconf looks through the different "stores" that it has (argv, env, files etc) for the given key (in this case When you configure the files as numbers (1, 2, 3, 4), they come before argv alphanumerically speaking. So the EDIT: I could be wrong. The behavior is very strange. |
@vivekannan The good thing for now is: with The PR is still open because we would like to figure out why. If you can find more, please share. Very appreciating your help. From next week on we will work again on Ghost 1.0 issues, bugs (config bugs etc.) and features. |
Closing. I've added a reference into the configuration audit issue #7488 Any further conversations, can still happen here. |
node index.js --url=my-url
won't override the default url.Thanks @sebgie for reporting.
With current usage of
nconf
, somehowfile
is always stronger thenargv
- maybe it's caused by how nconf create's in memory stores in combination of how we are usingnconf
.Will work on a solution for that.
Workaround could be for now:
touch config.development.json
echo "{\"url\": \".....\"}" | config.development.json
The text was updated successfully, but these errors were encountered: