Settings.json with environment variables
JeremyMcNeilrli opened this issue · 3 comments
It looks to be possible to set the settings.json path via environment variables but the document doesn't have details on this. Can you add this to the docs or let me know what the environment variable should be named?
Welcome to dotnet-monitor!
Thanks for creating your first issue; let us know what you think of dotnet-monitor by filling out our survey.
It looks to be possible to set the settings.json path via environment variables
The location of the settings.json
file is not configurable via environment variables.
The settings.json
file is implicitly found at the paths specified at https://github.com/dotnet/dotnet-monitor/blob/main/documentation/configuration/configuration-sources.md?plain=1#L9. It can also be implicitly loaded from the C:\ProgramData\dotnet-monitor
directory (on Windows) or the /etc/dotnet-monitor
directory (on non-Windows); I will update the docs to reflect this information.
You can also specify a path to a settings.json
file via the --configuration-file-path
command line switch: https://github.com/dotnet/dotnet-monitor/blob/main/documentation/configuration/configuration-sources.md?plain=1#L18
bummer I was really hoping to use the environment variable. thanks for the clarification.