0
我用下面Jhipster應用程序打印橫幅
yo jhipster
yo jhipster:cloudfoundry
但是創建JHipster應用中,當我推到PCF,應用程序啓動時,打印橫幅後掛起和就會被殺死後掛在樞紐的Cloud Foundry一分鐘後。
我試過的唯一的自定義是將某些屬性中的URL更改爲指向部署在cloudfoundry上的JHipster註冊表,如the jhipster documentation中所述。
這是我.yo-rc.json文件:
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.mycompany.myapp"
},
"jhipsterVersion": "4.3.0",
"baseName": "test",
"packageName": "com.mycompany.myapp",
"packageFolder": "com/mycompany/myapp",
"serverPort": "8081",
"authenticationType": "jwt",
"hibernateCache": "hazelcast",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": "eureka",
"buildTool": "gradle",
"enableSocialSignIn": false,
"jwtSecretKey": "bec0ab8352f04338c8c1db2fd572022c1bf877fe",
"enableTranslation": false,
"applicationType": "microservice",
"testFrameworks": [],
"jhiPrefix": "jhi",
"skipClient": true,
"skipUserManagement": true,
"clientPackageManager": "yarn"
}
}
該應用程序是否在prod配置文件本地工作?您是否增加了日誌記錄級別以獲取日誌中的更多詳細信息? –
我從應用程序無法訪問註冊表時看到了這個。註冊表的URL是否可以從應用程序的部署位置訪問? –
@GaëlMarziou:雖然我沒有測試過本地運行,但是當部署到kubernetes或openshift時,同樣的應用工作正常...... – kewne