Why do we use appsettings.json and appsettings.Prod.json but not appsettings.Dev.json? #478
Unanswered
VictorioBerra
asked this question in
Q&A
Replies: 2 comments
|
I am forced to use launchSettings.json"Kestrel": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Kestrel Production": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Production"
}
},The ports specified above conflict and get confused with the ones specified in the file below: appsettings.Production.json "Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://*:443",
"Certificate": {
// TODO
}
},
"Http": {
"Url": "http://*:80"
}
}
},If you can submit a PR to swap these two (so that |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The default ASPNET templates have an
appsettings.Development.jsonspecifically for development. For example: Development database connecting strings, verbose logging and debug sinks for Serilog.What is the motivation behind why we use only
appsettings.jsonandappsettings.Production.json?All reactions