简体   繁体   English

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

[英]Problems deploying jhipster app to heroku

I'm trying to deploy a jhipster based app to heroku using the heroku subgenerator. 我正在尝试使用heroku子生成器将基于jhipster的应用程序部署到heroku。 Everything works and the app is deployed but it seems that the database is not properly configured (using Mysql). 一切正常,应用程序已部署,但似乎数据库配置不正确(使用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 . 听起来好像没有添加数据库,这可能是由于该bug所致。 You can confirm by running heroku addons from the same directory you ran yo jhipster:heroku . 您可以通过在运行yo jhipster:heroku的同一目录中运行heroku addons来进行确认。

In any case, you can probably correct this by running: 无论如何,您可以通过运行以下命令来更正此问题:

$ heroku addons:create jawsdb:kitefin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM