【问题标题】:Renamed Heroku's hostname, now it can't find the application重命名 Heroku 的主机名,现在找不到应用程序
【发布时间】:2014-06-03 07:37:56
【问题描述】:

我之前的 Heroku 应用程序名称位于:

shielded-meadow-9293.heroku.com

这是我创建 Heroku 遥控器并启动测功机时的名称。一切顺利后,我把名字改成了

platformdesignmadness.heroku.com

当我执行诸如

之类的命令时,该站点可以工作,但在同一个终端中

heroku ps

我收到 $> ! Couldn't find that app. 错误。为什么是这样?

【问题讨论】:

    标签: django heroku cloud


    【解决方案1】:

    在您的终端中:

    git remote rm heroku
    git remote add heroku git@heroku.com:yourappname.git
    

    here

    Heroku 文档here.

    【讨论】:

      【解决方案2】:

      对于所有出现在这里的人都想弄清楚为什么

      $ heroku run:detached python script.py -n yyy -a zzzz
      

      命令不起作用,并给出此错误:

      ▸    Couldn't find that app.
      

      这是因为 Heroku 将 -a 参数感知为应用程序名称。忽略这些修复是this,基本上是添加--

      $ heroku run:detached -- python script.py -n yyy -a zzzz
      

      现在它可以正常工作了。

      【讨论】:

        猜你喜欢
        • 2011-11-28
        • 1970-01-01
        • 1970-01-01
        • 2013-07-02
        • 1970-01-01
        • 2014-04-03
        • 2023-03-21
        • 1970-01-01
        • 2021-10-07
        相关资源
        最近更新 更多