Skip to content

Commit 853430a

Browse files
committed
Remove settings on environment
1 parent 725d658 commit 853430a

5 files changed

Lines changed: 2 additions & 15 deletions

File tree

src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ public static async Task SeedAsync(IApplicationBuilder applicationBuilder)
1515

1616
using (context)
1717
{
18-
context.Database.EnsureDeleted();
19-
2018
context.Database.EnsureCreated();
2119

2220
if (!context.CatalogBrands.Any())

src/Services/Catalog/Catalog.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public Startup(IHostingEnvironment env)
2121
{
2222
var builder = new ConfigurationBuilder()
2323
.SetBasePath(env.ContentRootPath)
24-
.AddJsonFile($"settings.{env.EnvironmentName}.json",optional:false)
24+
.AddJsonFile($"settings.json",optional:false)
2525
.AddEnvironmentVariables();
2626

2727

src/Services/Catalog/Catalog.API/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"wwwroot",
4444
"Views",
4545
"Areas/**/Views",
46-
"settings.Production.json",
46+
"settings.json",
4747
"web.config",
4848
"project.json",
4949
"Dockerfile"
File renamed without changes.

src/Services/Catalog/Catalog.API/settings.production.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)