[英]How I can deploy Quarkus on GCP?
I have a big problem, I want to send my backend to Google Cloud Run however, I get the following error when I follow this tutorial for the jvm part: https://quarkus.io/guides/deploying-to-google-cloud#deploying-to-google-cloud-run我有一个大问题,我想将我的后端发送到 Google Cloud Run 但是,当我按照 jvm 部分的本教程进行操作时出现以下错误: https://quarkus.io/guides/deploying-to-google-cloud #deploying-to-google-cloud-run
ERROR: (gcloud.run.deploy) The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
I tried to defined this variable in my application.yml: quarkus.http.port: 8080
but it still doesn't work:(我试图在我的 application.yml 中定义这个变量: quarkus.http.port: 8080
但它仍然不起作用:(
If you have any advice, I am interested, thank you very much如果您有什么建议,我很感兴趣,非常感谢
Look at https://github.com/cescoffier/polycloud-demo/blob/main/src/main/resources/application.properties .查看https://github.com/cescoffier/polycloud-demo/blob/main/src/main/resources/application.properties 。
This is part of a demo deploying on Google Cloud Run.这是在 Google Cloud Run 上部署的演示的一部分。 As you can see, the port is configured using:如您所见,端口配置使用:
quarkus.http.port=${PORT:8080}
Also, make sure your application starts correctly.此外,请确保您的应用程序正确启动。 If there is an issue during the startup, the port is not opened.如果在启动过程中出现问题,则端口未打开。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.