【问题标题】:Problems deploying jhipster app to heroku将 jhipster 应用程序部署到 heroku 时出现问题
【发布时间】:2017-01-26 12:29:09
【问题描述】:

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

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

在文档中找不到解决方案。 也许我在部署之前缺少一些配置?

【问题讨论】:

    标签: java spring heroku jhipster


    【解决方案1】:

    听起来好像没有添加数据库,这可能是由于this bug。您可以通过在运行 yo jhipster:heroku 的同一目录中运行 heroku addons 来确认。

    在任何情况下,您都可以通过运行来纠正这个问题:

    $ heroku addons:create jawsdb:kitefin
    

    【讨论】:

    • 解决了@codefinger 的问题,你说得对,插件没有正确添加。非常感谢!
    猜你喜欢
    • 1970-01-01
    • 2014-11-25
    • 2012-07-08
    • 2015-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多