Problems deploying jhipster app to heroku

家住魔仙堡 提交于 2019-12-12 02:35:59

问题


I'm trying to deploy a jhipster based app to heroku using the heroku subgenerator. Everything works and the app is deployed but it seems that the database is not properly configured (using Mysql). The thrown error is the following:

org.springframework.context.ApplicationContextException: Heroku database URL is not configured, you must set $JDBC_DATABASE_URL

Cannot find a solution in the documentation. Maybe i'm missing some configuration before deployment?


回答1:


It sounds like the database wasn't added, which is probably due to this bug. You can confirm by running heroku addons from the same directory you ran yo jhipster:heroku.

In any case, you can probably correct this by running:

$ heroku addons:create jawsdb:kitefin


来源:https://stackoverflow.com/questions/39562616/problems-deploying-jhipster-app-to-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!