“Couldn't find that app.” when running heroku commands in console

社会主义新天地 提交于 2019-12-22 10:39:49

问题


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.


回答1:


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.




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!