【发布时间】:2015-02-20 21:58:49
【问题描述】:
我想使用 Travis CI 从 GitHub 将我的 Web 应用程序部署到 OpenShift 上的 WildFly 应用程序服务器。
我按照 How to Build and Deploy OpenShift Java Projects using Travis CI 教程进行操作,但我的 Java EE 7 Web 应用程序中的 index.html 页面没有显示。我得到的是 OpenShift 的默认页面,而不是 index.html 页面,上面写着:“欢迎使用 OpenShift 上的 WildFly 8 应用程序”。
我必须做什么才能显示我的 web 应用程序?
这是我的 Travis CI 控制台日志的最后几行:
remote: [WARNING] The requested profile "openshift" could not be activated because it does not exist.
remote: Preparing build for deployment
remote: Deployment id is 20db7c5e
remote: Activating deployment
remote: HAProxy already running
remote: HAProxy instance is started
remote: Deploying WildFly
remote: ls: cannot access /var/lib/openshift/54e7963efcf933b7e2000037/app-root/runtime/repo//deployments: No such file or directory
remote: Starting wildfly cart
remote: Found 127.9.239.1:8080 listening port
remote: Found 127.9.239.1:9990 listening port
remote: /var/lib/openshift/54e7963efcf933b7e2000037/wildfly/standalone/deployments /var/lib/openshift/54e7963efcf933b7e2000037/wildfly
remote: /var/lib/openshift/54e7963efcf933b7e2000037/wildfly
remote: CLIENT_MESSAGE: Artifacts deployed: ./ROOT.war
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
你可以在这里查看我的 webapp 代码:https://github.com/welovecoding/javeasy
【问题讨论】:
标签: continuous-integration openshift travis-ci java-ee-7 wildfly-8