"Couldn't find that app." when running heroku commands in console
Asked Answered
B

5

26

I'm trying to run commands for my heroku app in my console, but it keeps telling me "Couldn't find that app." even though when I run heroku apps in my console it tells me I have one app called worldofwarcraft-api

So heroku recognizes my app in the apps list, but I can't run any commands to access it. The line I want to run is

heroku ps:scale web=1 --app worldofwarcraft-api

I'm trying to troubleshoot why my API returns a 503 when I try to make a GET request to it. This is the fix the heroku faq told me to try, but it's just telling me it can't find my app.

I'm wondering if it has something to do with the fact that I deployed my API from github, rather than running the heroku setup in my console. I don't know if that would effect my ability to run heroku commands on the app in my local console.

Apologies if my formatting is off a bit. I'm still getting used to this site.

Bit answered 30/11, 2018 at 5:26 Comment(1)
follow this #6227346Chemnitz
B
39

Solved it. Just sharing for future searches.

The issue was fixed by running git init and then heroku git:remote -a worldofwarcraft-api in my command line while inside my repositories folder. This initialized git in the repo and then set the heroku git remote to that repository.

Hopefully, this helps anyone else who had a similar issue.

Bit answered 30/11, 2018 at 5:55 Comment(1)
Very helpful, all I needed to do was run heroku git:remote -a "NAME_OF_THE_APP" which was heroku git:remote -a fast-temple-20751 in my caseWordsworth
C
48

In my case, someone renamed GitHub repo and I tried to find Heroku app with new GitHub name

It helps me

heroku apps
heroku git:remote -a YOUR_APP
Cunningham answered 11/10, 2019 at 5:36 Comment(0)
B
39

Solved it. Just sharing for future searches.

The issue was fixed by running git init and then heroku git:remote -a worldofwarcraft-api in my command line while inside my repositories folder. This initialized git in the repo and then set the heroku git remote to that repository.

Hopefully, this helps anyone else who had a similar issue.

Bit answered 30/11, 2018 at 5:55 Comment(1)
Very helpful, all I needed to do was run heroku git:remote -a "NAME_OF_THE_APP" which was heroku git:remote -a fast-temple-20751 in my caseWordsworth
S
16

Just an easy way to solve this issue:

1st: Add the command into your terminal: $ heroku apps

If you already logged into your heroku account from your terminal, all your apps will appear as a list like this:

your-project-name-1
your-project-name-2  
your-project-name-3
your-project-name-4

2nd: Then chose which one you are needing to connect with the following command:

$ heroku git:remote -a your-project-name-2

If you've done the connection properly you'll receive the following output:

set git remote heroku to https://git.heroku.com/your-project-name-2.git

Supralapsarian answered 24/1, 2021 at 0:29 Comment(0)
T
3

If the app belongs to a team that you participate in, you have to specify the team option in the commands to see the app:

E.g:

heroku apps -t <team name>

or

heroku ps:scale web=1 --app worldofwarcraft-api -t <team name>
Thurlough answered 27/8, 2021 at 6:26 Comment(0)
F
2

For my case, I was renaming my github repository.

You can find it in your repository settings then just rename it, it appears in the first place.

Then you can continue with git init again to re-initiate your existing git repository and then set your heroku remote with your heroku apps new name heroku git:remote -a YOUR_APP_NAME

Factoring answered 21/6, 2020 at 17:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.