Amar Premsaran Patel
Amar Premsaran Patel

Reputation: 1383

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

Getting Could not find application error as follows:

$ 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!

Does anyone know why I am getting the "Could not find application" error?

Upvotes: 0

Views: 381

Answers (1)

Jon Ruddell
Jon Ruddell

Reputation: 6352

The issue is that your app was not found from the heroku command heroku apps:info --json, which runs here.

The fix is to remove the herokuAppName key in .yo-rc.json and re-run jhipster heroku.

  • If you have an existing Heroku app using that name and want to re-deploy it, use the same app name.
  • If you do not have an existing Heroku app using that name, you can still deploy under that name, or choose a new name.

There is a bug in the generator code where the config is not cleared automatically, requiring you to manually edit .yo-rc.json. This is fixed in pull request 13039 which will be part of v7 of JHipster.

Upvotes: 3

Related Questions