update the release
This commit is contained in:
parent
efad7e7ce3
commit
fa4f6e5ecc
@ -16,9 +16,6 @@ public static class EnviromentLoader
|
||||
{
|
||||
public static async Task SetDatabaseEnviroment([NotNull] this WebApplicationBuilder builder)
|
||||
{
|
||||
if (!builder.Environment.IsProduction())
|
||||
return;
|
||||
|
||||
var connectionSection = builder.Configuration.GetSection("ConnectionStrings");
|
||||
var connections = connectionSection.GetChildren();
|
||||
var sb = new StringBuilder();
|
||||
|
@ -40,7 +40,9 @@ public class Program
|
||||
.WriteTo.Async(c => c.Console())
|
||||
.WriteTo.Async(c => c.AbpStudio(services));
|
||||
});
|
||||
#if RELEASE
|
||||
await builder.SetDatabaseEnviroment();
|
||||
#endif
|
||||
await builder.AddApplicationAsync<BookStoreHttpApiHostModule>();
|
||||
var app = builder.Build();
|
||||
await app.InitializeApplicationAsync();
|
||||
|
Loading…
x
Reference in New Issue
Block a user