gpt4 book ai didi

java - 如何正确部署 webapp 到 openshift?

转载 作者:行者123 更新时间:2023-11-30 03:54:43 26 4
gpt4 key购买 nike

我按照 https://www.openshift.com/blogs/day-28-openshift-eclipse-integration-for-java-developers 上的说明进行操作

无论如何,当打开我的应用程序时,我收到503 Service Unavailable

如何验证 openshift 上的构建是否确实成功?

这是发布期间的输出:

[INFO] --- maven-war-plugin:2.4:war (default-war) @ my-app ---
[INFO] Packaging webapp
[INFO] Assembling webapp [my-app] in [/var/lib/openshift/5369ed42e0b8cdc66a00027c/app-root/runtime/repo/target/my-app]
[INFO] Processing war project
[INFO] Webapp assembled in [6408 msecs]
[INFO] Building war: /var/lib/openshift/5369ed42e0b8cdc66a00027c/app-root/runtime/repo/deployments/ROOT.war
[INFO]
[INFO] --- spring-boot-maven-plugin:1.0.1.RELEASE:repackage (default) @ my-app ---

只有我的本地计算机和本地构建,此后才会出现构建成功消息,例如:

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.385s
[INFO] Finished at: Wed May 07 11:15:48 CEST 2014
[INFO] Final Memory: 13M/32M
[INFO] ------------------------------------------------------------------------

但是发布到 openshift 后缺少此内容。这是否告诉我在云中构建没有成功?

最佳答案

关于java - 如何正确部署 webapp 到 openshift?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23513864/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com