运行 "jhipster heroku" 时出现 "Could not find application" 错误

Getting "Could not find application" error when running "jhipster heroku"

获取Could not find application错误如下:

$ jhipster heroku                                                   
INFO! Using JHipster version installed globally
INFO! Executing jhipster:heroku
Heroku configuration is starting
✖ Could not find application: geonamesservice
✖ Run the generator again to create a new application.
identical pom.xml
    force .yo-rc.json
INFO! Congratulations, JHipster execution is complete!

有谁知道我为什么会收到“找不到应用程序”错误消息?

问题是无法通过 heroku 命令 heroku apps:info --json 找到您的应用,runs here

修复方法是删除 .yo-rc.json 中的 herokuAppName 键并重新 运行 jhipster heroku.

  • 如果您有使用该名称的现有 Heroku 应用程序并想重新部署它,请使用相同的应用程序名称。
  • 如果您没有使用该名称的现有 Heroku 应用程序,您仍然可以使用该名称进行部署,或者选择一个新名称。

生成器代码中存在配置不会自动清除的错误,需要您手动编辑 .yo-rc.json。这已在 pull request 13039 中修复,它将成为 JHipster v7 的一部分。