Remove settings on environment
This commit is contained in:
parent
725d658697
commit
853430a4e3
@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
using (context)
|
using (context)
|
||||||
{
|
{
|
||||||
context.Database.EnsureDeleted();
|
|
||||||
|
|
||||||
context.Database.EnsureCreated();
|
context.Database.EnsureCreated();
|
||||||
|
|
||||||
if (!context.CatalogBrands.Any())
|
if (!context.CatalogBrands.Any())
|
||||||
|
@ -21,7 +21,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API
|
|||||||
{
|
{
|
||||||
var builder = new ConfigurationBuilder()
|
var builder = new ConfigurationBuilder()
|
||||||
.SetBasePath(env.ContentRootPath)
|
.SetBasePath(env.ContentRootPath)
|
||||||
.AddJsonFile($"settings.{env.EnvironmentName}.json",optional:false)
|
.AddJsonFile($"settings.json",optional:false)
|
||||||
.AddEnvironmentVariables();
|
.AddEnvironmentVariables();
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"wwwroot",
|
"wwwroot",
|
||||||
"Views",
|
"Views",
|
||||||
"Areas/**/Views",
|
"Areas/**/Views",
|
||||||
"settings.Production.json",
|
"settings.json",
|
||||||
"web.config",
|
"web.config",
|
||||||
"project.json",
|
"project.json",
|
||||||
"Dockerfile"
|
"Dockerfile"
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"ConnectionString": "Server=127.0.0.1;Port=5432;Database=CatalogDB;username=postgres;password=postgres",
|
|
||||||
"Logging": {
|
|
||||||
"IncludeScopes": false,
|
|
||||||
"LogLevel": {
|
|
||||||
"Default": "Debug",
|
|
||||||
"System": "Information",
|
|
||||||
"Microsoft": "Information"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user