Openshift v3 中 postgres 的配置

Configuration of postgres in Openshift v3

我有一个带有 tomcat 的 openshift 在线 v2 应用程序。此应用程序连接到在 server.xml.

中配置的 postgres 数据库

现在我必须迁移到 v3,我的应用出现以下错误

 Name [jdbc/standard] is not bound in this Context. Unable to find [jdbc].

但是不知道这个版本的server.xml怎么配置

有谁知道怎么配置吗?

谢谢

document有答案(没试过):

  1. All WAR files from the deployments source repository directory are copied to /opt/webserver/webapps.

  2. All files in the configuration source repository directory are copied to /opt/webserver/conf.

If you want to use custom Tomcat configuration files, the file names should be the same as for a normal Tomcat installation. For example, context.xml and server.xml.

尝试通过 oc rhc <pod_id> 登录 pod shell 并探索 /opt/webserver/conf 区域。