我正在尝试将cf pushSpring Boot 应用程序连接到 Pivot Cloud Foundry,但容器无法启动。这是错误输出: 2018-08-21T12:48:55.34+0200 [CELL/0] OUT Starting health monitoring of container 2018-08-21T12:48:55.81+0200 [APP/PROC/WEB/0] OUT JVM Memory Configuration: -Xmx427509K -Xss1M -XX:ReservedCodeCacheSize=240M -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=109066K 2018-08-21T12:48:55.81+0200 [APP/PROC/WEB/0] OUT Failed to start a browser to open the URL http://10.246.203.10:8082: Browser detection failed and system property h2.browser not set 2018-08-21T12:49:56.15+0200 [HEALTH/0] ERR Failed to make TCP connection to port 8080: connection refused 2018-08-21T12:49:56.15+0200 [CELL/0] ERR Timed out after 1m0s: health check never passed.我试图h2.browser属性设置为“歌剧”,false并true在Application.yml但这并没有解决问题。我还删除了 h2 依赖项,因为我不想在 PCF 中使用 h2 并在cf push. 当我运行 JAR 文件时,它会使用 h2 网络界面打开我的浏览器(我不想要那样)。我在这里缺少什么?编辑:我想我可能需要将参数传递给 PCF 中的 Java 应用程序以禁用 H2 的控制台(浏览器部分),但不确定..应用程序.yml: datasource: driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://my_url_here username: my_username_here password: my_password_here jpa: hibernate.ddl-auto: none show_sql: false清单文件.yml---applications:- name: cookie-backend memory: 1024M instances: 1 random-route: true buildpack: java_buildpack path: out/artifacts/cookie_backend_jar/cookie-backend.jar services: - mysql
添加回答
举报
0/150
提交
取消