简体   繁体   English

如何在 GCP 上部署 Quarkus?

[英]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.

相关问题 如何将 Firestore 侦听器功能部署到 GCP Cloud? - How to deploy Firestore listener functions to GCP Cloud? 如何在 gcp vm 中部署 docker 镜像 - how to deploy docker image in gcp vm 如何指定 GCP 数据流的 IP 号? - How can I specify the IP number of GCP's Dataflow? 我如何在 GCP 控制台上配置特定项目? - how can i configure out the specific project on GCP console? 如何检测 GCP 上的审计日志是否已停用? - How can I detect if Audit logs on GCP have been deactivated? 控制点 | 如何查看项目中所有正在运行的虚拟机? - GCP | How I can see all the working virtual machines on a project? 如何访问 GCP Composer Airflow 服务器的元数据数据库? - How can i access metadata db of GCP Composer Airflow server? GCP 部署数据库连接错误:无法创建到主机的连接 - GCP deploy db connection error: Can't create a connection to host 我怎样才能 SSH 到我的 GCP Kube.netes 集群? - How can I SSH to my GCP Kubernetes cluster? 如何在我的 gcp 存储桶对象路径中使用通配符? - How can I use wildcards in my gcp bucket objects path?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM