“找不到该应用."在控制台中运行heroku命令时 [英] "Couldn't find that app." when running heroku commands in console

查看:115
本文介绍了“找不到该应用."在控制台中运行heroku命令时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在控制台中为我的heroku应用程序运行命令,但是它一直告诉我找不到该应用程序".即使当我在控制台中运行heroku apps时,它仍然告诉我我有一个名为worldofwarcraft-api

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

因此heroku可以在应用程序"列表中识​​别我的应用程序,但是我无法运行任何命令来访问它.我要运行的行是

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

我正在尝试解决为什么我尝试向其发出GET请求时我的API返回503的原因.这是heroku常见问题解答告诉我尝试的解决方法,但这只是告诉我找不到我的应用程序.

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.

我想知道这是否与我从github部署API而不是在控制台中运行heroku设置有关.我不知道这是否会影响我在本地控制台中的应用程序上运行heroku命令的能力.

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.

此问题已通过在存储库文件夹中的命令行中依次运行git initheroku git:remote -a worldofwarcraft-api来解决.这在存储库中初始化了git,然后将heroku git remote设置为该存储库.

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.

这篇关于“找不到该应用."在控制台中运行heroku命令时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆