将Jhipster应用程序部署到Heroku时出现问题

问题描述:

我正在尝试使用heroku子生成器将基于jhipster的应用程序部署到heroku.一切正常,应用程序已部署,但似乎数据库配置不正确(使用Mysql).引发的错误如下:

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?

听起来好像没有添加数据库,这可能是由于

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