| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Uses the PORT environment variable when is present, otherwise sets 8080.
There was a problem hiding this comment.
Not sure this change is warranted. I think AppEngine always wants port 8080?
@averikitsch - thoughts?
Sorry, something went wrong.
|
@kurtisvg I did this to prevent this warning in the console logs viewer : {
insertId: "5d26aeb2000c973148c895ec"
labels: {
clone_id: "00c61b117c21f3d5d43e23db86e8c2c0964ad67598aa0959da791ccdd718816044908044adf3"
}
logName: "projects/calculadora-sat/logs/stderr"
receiveTimestamp: "2019-07-11T03:36:18.833405023Z"
resource: {
labels: {
module_id: "default"
project_id: "calculadora-sat"
version_id: "north"
zone: "us17"
}
type: "gae_app"
}
severity: "WARNING"
textPayload: "App is listening on port 8080, it should instead listen on the port defined by the PORT environment variable. As a consequence, nginx cannot be started. Performance may be degraded. Please listen on the port defined by the PORT environment variable."
timestamp: "2019-07-11T03:36:18.825137Z"
}
And I will update the code, following your recommendations. |
Sorry, something went wrong.
|
@kurtisvg this must be a new warning. The app is suppose to be listening to port 8080. (This error sounds more like a Cloud Run error). I will check in the the GAE team. |
Sorry, something went wrong.
…/example/appengine/demo/jettymain/Main.java Co-Authored-By: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
Co-Authored-By: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [3.6.7](googleapis/java-dlp@v3.6.6...v3.6.7) (2022-08-05) ### Documentation * **owlbot-java:** explaining why not using formatter in pom.xml ([#1511](https://github.com/googleapis/java-dlp/issues/1511)) ([#945](googleapis/java-dlp#945)) ([ab8d91f](googleapis/java-dlp@ab8d91f)), closes [#1502](https://github.com/googleapis/java-dlp/issues/1502) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
| Back | FazBrowse Home | New Git URL |
When the application is deployed with hard-coded port configuration, appear the Warning:
'App is listening on port 8080, it should instead listen on the port defined by the PORT environment variable.'
This patch look for the PORT environment variable, otherwise set 8080.