Skip to content

Commit

Permalink
Merge pull request #69 from gregolsky/master
Browse files Browse the repository at this point in the history
fix application startup - add missing http logging dotnet/aspnetcore#51322
  • Loading branch information
gregolsky authored Jan 22, 2024
2 parents b2391b3 + 837b685 commit 26b8a6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions back-end/WebApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public void ConfigureServices(IServiceCollection services)
services.AddAndConfigureSwagger(settings.UserApiKey);

services.AddApplicationInsightsTelemetry();

services.AddHttpLogging(_ => { });
}

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions scripts/build-docker.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build --tag yabt --platform linux/amd64 --file ./devops/Dockerfile .
9 changes: 9 additions & 0 deletions scripts/run-docker.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

$cert = $env:YABT_RAVENDB_CERT
$url = $env:YABT_RAVENDB_URL

docker run -it --rm -p 8080:8080 `
-e Database__RavenDbUrls__0='$url' `
-e Database__Certificate='$cert' `
-e ASPNETCORE_URLS=http://0.0.0.0:8080 `
yabt

0 comments on commit 26b8a6e

Please sign in to comment.