我按照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 ---
Ony我的本地计算机和本地构建,此后将构建成功的消息,如:
[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。这告诉我构建在云中不成功吗?
答案 0 :(得分:2)
你可以直接部署war openshift,不需要在服务器上构建它,以供参考: https://www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear-files-onto-your-openshift-gear