2

I am new to Heroku. I tried to use the command heroku to get some inforamtion of my apps.

I can use heroku list to get the list. But when I use heroku info, it returns

App not found

What's the problem? How can I fix this error?

Thank you in advance.

3 Answers 3

2

You need to either run

heroku info --app name-of-app

or run

heroku info

from the base directory of one of your heroku-hosted applications.

4
  • Thanks buddy. I run both commands in the base directory, but same error pop up.... any idea?
    – Victor Lam
    Jan 4, 2011 at 16:15
  • What does the command 'git remote show heroku' return? does the remote git match that of one fo the apps in the heroku info result?
    – Steve Wilhelm
    Jan 4, 2011 at 21:05
  • oops... i got Permission denied (publickey). fatal: The remote end hung up unexpectedly..... how come?! I don't understand... I can deploy the app to heroku with no problem.....
    – Victor Lam
    Jan 5, 2011 at 17:38
  • have you tried generating a new public key?
    – corroded
    May 30, 2011 at 16:51
1

there's two sets of credentials in use here. Git uses your SSH key and heroku CLI will use your heroku credentials

From the command line do

heroku auth:login

and enter your heroku credentials and you should be back up and running

2
  • This worked for me! I don't know why that became an issue all of a sudden. I think they need a better error message. Feb 3, 2015 at 19:59
  • Just damn. I spoke too soon. Now heroku info works, but heroku logs -tail still gives me ` ! App not found.` Feb 3, 2015 at 20:00
0

Make sure you have the "build" and "install" commands in the package.json file on the root directory of your project. If you are using Nodejs:

"scripts": {
    "build": "cd client && npm run build",
    "install": "cd client && npm install",
    "start": "node server",
    "server": "nodemon server",
    "client": "npm start --prefix client",
    "dev": "concurrently \"npm run server\" \"npm run client\""
  },
1
  • It may be valuable to explain why this will solve the problem described in the question.
    – womble
    Jan 19, 2020 at 6:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .