2017-08-09 24 views
2

我只是在爲Heroku部署一個單一的JHipster應用程序。我跟着these說明。它似乎部署好了〜表被創建並且靜態數據被加載。我可以登錄並瀏覽網站。JHipster - Heroku - 沒有配置的節點可用

但是,當我嘗試更新或創建任何內容時,出現內部服務器錯誤。運行heroku loghere後,我看到了以下錯誤:

ERROR 4 --- [ XNIO-2 task-32] o.h.m.w.rest.errors.ExceptionTranslator : An unexpected error occurred: None of the configured nodes are available: [{#transport#-1}{localhost}{127.0.0.1:9300}] 2017-08-09T22:25:52.182502+00:00 heroku[router]: at=info method=DELETE

當本地運行的應用程序,MVN(DEV配置文件)和H2數據庫一切正常。任何人都可以給我一個如何繼續的指針?

JHipster v4.6.2 /角4/PostgreSQL的

非常感謝,

回答

0

原來,當我生成我的應用我選擇的彈性搜索。按here

JHipster expects an external Elasticsearch instance

...並且在評論here提到的蓋爾:

the usual error with elasticsearch jhipster apps in prod profile is that user forgot to instantiate an elasticsearch instance

......而事實上,在我application-prod.yml,我有這樣的:

data: 
    elasticsearch: 
     cluster-name: 
     cluster-nodes: localhost:9300 

目前,我剛剛發表了評論,並根據here將應用重新部署到了Heroku。

謝謝,

相關問題