-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to .NET 8 #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Updated the PR description due to a .NET 8 breaking change in the default port |
I'll review how it was working before in respect to the listening port. It may be possible to configure this container version to replicate the old behavior. |
After looking at the logs from the previous version, I noticed that it's already waiting some requests using the localhost:5000 somehow. The logs with .NET 5 base image are: 2024-07-19 10:52:17.565 [Notice]
..:: Environment Summary ::..
APP :
-------------------------
App : Giraffe
Version : 0.0.1
DIRECTORIES :
-------------------------
App : /app
Public Assets : /app/Assets/Public
LOGGING :
-------------------------
Environment : Unknown
Log Level : info
Sentry DSN :
REDIRECTION :
-------------------------
Force HTTPS : False
URLS :
-------------------------
Domain : giraffe.wiki
Base URL : http://localhost:5000
PROXIES :
-------------------------
Proxy count : 0
Known proxies :
Known proxy networks :
DEBUGGING :
-------------------------
Request logging enabled : False
Error endpoint enabled : False
2024-07-19 10:52:17.760 [Info] Now listening on: http://[::]:80
2024-07-19 10:52:17.760 [Info] Application started. Press Ctrl+C to shut down.
2024-07-19 10:52:17.760 [Info] Hosting environment: Production
2024-07-19 10:52:17.760 [Info] Content root path: /app But it works fine if I use this port binding: docker container run -d -p 5000:80 giraffefsharp/giraffe-website:0.0.1 And the new version with .NET 8: 2024-07-19 10:59:37.175 [Notice]
..:: Environment Summary ::..
APP :
-------------------------
App : Giraffe
Version : 0.0.1
DIRECTORIES :
-------------------------
App : /app
Public Assets : /app/Assets/Public
LOGGING :
-------------------------
Environment : Unknown
Log Level : info
Sentry DSN :
REDIRECTION :
-------------------------
Force HTTPS : False
URLS :
-------------------------
Domain : giraffe.wiki
Base URL : http://localhost:5000
PROXIES :
-------------------------
Proxy count : 0
Known proxies :
Known proxy networks :
DEBUGGING :
-------------------------
Request logging enabled : False
Error endpoint enabled : False
2024-07-19 10:59:37.314 [Info] Now listening on: http://[::]:5000
2024-07-19 10:59:37.315 [Info] Application started. Press Ctrl+C to shut down.
2024-07-19 10:59:37.315 [Info] Hosting environment: Production
2024-07-19 10:59:37.315 [Info] Content root path: /app |
Warning
Notice that the branch name is misleading. My bad. I changed the PR direction while working on it.
Description
With this PR, I'm:
Related
How to test
master
branch.dotnet run --project src/Giraffe.Website/ # open the localhost:5000/ and make sure that it's working well (giraffe.wiki)
The Docker container:
This Docker image is available at: https://hub.docker.com/r/giraffefsharp/giraffe-website.