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



Getting找不到应用程序错误,如下所示:

$ 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中找不到您的应用程序。

修复方法是删除.yo-rc.json中的herokuAppName密钥,然后重新运行jhipster heroku

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

生成器代码中有一个错误,配置没有自动清除,需要手动编辑.yo-rc.json。这在拉取请求13039中得到了修复,该请求将成为JHipster v7的一部分。

最新更新