Vérification production
continuous-integration/drone/push Build is passing Details

deploiement
Clement CHIEU 1 year ago
parent 509b0d7565
commit 0e1f873c9f

@ -41,9 +41,12 @@ builder.Services.AddDbContext<UserDbContext>(options =>
{
if (builder.Environment.IsProduction())
{
throw new Exception("I am in production mode");
Console.WriteLine("I am in production mode");
}
else
{
Console.WriteLine("I am in development mode");
}
throw new Exception("I am in development mode");
});
builder.Services.AddDbContext<WebAPIDbContext>(options => options.UseInMemoryDatabase("appDb"));
builder.Services.AddIdentityApiEndpoints<IdentityUser>().AddEntityFrameworkStores<WebAPIDbContext>();

Loading…
Cancel
Save