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

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

问题描述

我正在尝试在控制台中为我的 heroku 应用程序运行命令,但它一直告诉我找不到该应用程序".即使当我在控制台中运行 heroku 应用程序 时它告诉我我有一个名为 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 init 然后 heroku git:remote -a worldofwarcraft-api 解决.这会在 repo 中初始化 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天全站免登陆