Remove settings on environment

This commit is contained in:
Unai 2016-11-04 10:11:15 +01:00
parent 725d658697
commit 853430a4e3
5 changed files with 2 additions and 15 deletions

View File

@ -15,8 +15,6 @@
using (context)
{
context.Database.EnsureDeleted();
context.Database.EnsureCreated();
if (!context.CatalogBrands.Any())

View File

@ -21,7 +21,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API
{
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile($"settings.{env.EnvironmentName}.json",optional:false)
.AddJsonFile($"settings.json",optional:false)
.AddEnvironmentVariables();

View File

@ -43,7 +43,7 @@
"wwwroot",
"Views",
"Areas/**/Views",
"settings.Production.json",
"settings.json",
"web.config",
"project.json",
"Dockerfile"

View File

@ -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"
}
}
}