Skip to content

Commit 0553817

Browse files
Change LaunchSettings and add /Health/Check
1 parent 30671f2 commit 0553817

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/SwiftLink.Infrastructure/ConfigServices.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ public static IServiceCollection RegisterInfrastructureServices(this IServiceCol
1818
{
1919
opt.UseSqlServer(configuration.GetConnectionString(nameof(ApplicationDbContext)),
2020
(db) => { db.MigrationsHistoryTable("MigrationHistory"); })
21+
#if DEBUG
2122
.LogTo(Console.WriteLine, LogLevel.Information)
2223
.EnableSensitiveDataLogging();
24+
#endif
2325
});
2426

2527
services.AddSingleton<ICacheProvider, RedisCacheService>();

src/SwiftLink.Presentation/Properties/launchSettings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"http": {
44
"commandName": "Project",
55
"launchBrowser": true,
6-
"launchUrl": "Health",
6+
"launchUrl": "Health/Check",
77
"environmentVariables": {
88
"ASPNETCORE_ENVIRONMENT": "Development"
99
},
@@ -13,7 +13,7 @@
1313
"https": {
1414
"commandName": "Project",
1515
"launchBrowser": true,
16-
"launchUrl": "Health",
16+
"launchUrl": "Health/Check",
1717
"environmentVariables": {
1818
"ASPNETCORE_ENVIRONMENT": "Development"
1919
},
@@ -23,15 +23,15 @@
2323
"IIS Express": {
2424
"commandName": "IISExpress",
2525
"launchBrowser": true,
26-
"launchUrl": "Health",
26+
"launchUrl": "Health/Check",
2727
"environmentVariables": {
2828
"ASPNETCORE_ENVIRONMENT": "Development"
2929
}
3030
},
3131
"Docker": {
3232
"commandName": "Docker",
3333
"launchBrowser": true,
34-
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/Health",
34+
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/Health/Check",
3535
"environmentVariables": {
3636
"ASPNETCORE_HTTPS_PORTS": "8081",
3737
"ASPNETCORE_HTTP_PORTS": "8080"

0 commit comments

Comments
 (0)