2017-08-09 48 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。

谢谢,

相关问题