Alternate Config Not Working
-
Hi
I have tried to specify an alternative config file in the start up command and it doesn't seem to pick up the config.
"nodebb -c config-dev.json start"
I do have config.json file in the same root directory as the alternate but the -c switch still picking up config.json
Please advise if i have used the switch correctly
Thanks
Nelson
-
@yapne did you try putting the switch after the command?
-
Yes. still the same.
Using -c and --config behaves differently!
This says using -o as the config instead and thinks there is no config file in the root.
C:\TEMP\SourceTree\nodebb>nodebb start --log-level "debug" -config "config-dev.json"
******************-o
------------------undefined
2018-03-26T16:46:35.986Z [15444] - verbose: * using configuration stored in: C:\TEMP\SourceTree\nodebb-o
2018-03-26T16:46:36.828Z [15444] - info: Launching web installer on port 4567
2018-03-26T16:46:37.715Z [15444] - info: Web installer listening on http://0.0.0.0:4567This says using the alternative config but it is still taking the values from config.json
C:\TEMP\SourceTree\nodebb>nodebb start --log-level "debug" -c "config-dev.json"
******************config-dev.json
------------------true
2018-03-26T16:47:46.476Z [16664] - verbose: * using configuration stored in: C:\TEMP\SourceTree\nodebb\config-dev.json -
@yapne you put "-config" not "--config", that's incorrect.
-
@yapne right, that's a problem. I was just commenting on the error and "behaves differently"
-
@yapne https://github.com/NodeBB/NodeBB/issues/6404
It's fixed on latest master, will be in v1.8.2