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.
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.
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
来源:https://stackoverflow.com/questions/53551717/couldnt-find-that-app-when-running-heroku-commands-in-console