我正在尝试将Jhipster应用程序(Spring Boot + AngularJS)部署到Bluemix Tomcat。但是我总是得到这个错误:
onResume()
提示:应用程序必须正在侦听正确的端口。不使用硬编码端口,而是使用Error restarting application: Start app timeout
环境变量。
Bluemix控制台上的完整错误是:
$PORT
我已经尝试将App instance exited with guid 1c76324f-57fb-4a00-b203-499519b4367c payload:
{
"cc_partition"=>"default",
"droplet"=>"1c76324f-57fb-4a00-b203-499519b4367c",
"version"=>"0103e173-b6d3-4daa-a291-b5792c16b69b",
"instance"=>"0c09506c30764b6c921cabb9a55d9e45",
"index"=>0,
"reason"=>"CRASHED",
"exit_status"=>255,
"exit_description"=>"failed to accept connections within health check timeout",
"crash_timestamp"=>1479341938
}
Instance (index 0) failed to start accepting connections
配置更改为
application-dev.yml
或者
server:
port: ${VCAP_APP_PORT}
然而,我没有取得任何成功。如何将端口变量传递给Jhipster配置?