【问题标题】:Heroku and Django : error "Couldn't find that app" from terminal/CLIHeroku 和 Django:来自终端/CLI 的错误“找不到该应用程序”
【发布时间】:2019-12-16 10:00:45
【问题描述】:

我正在将我的 Django 网站用于 Heroku。

我关注了:

a)heroku login

b)heroku create

产生:

Creating app... done, ⬢ enigmatic-ridge-36610
https://enigmatic-ridge-36610.herokuapp.com/ | https://git.heroku.com/enigmatic-ridge-36610.git

c)heroku addons:create heroku-postgresql:hobby-dev

产生:

在 ⬢ morning-gorge-61422 上创建 heroku-postgresql:hobby-dev... ! ▸ 找不到那个应用程序。

我试过这个指南:"Couldn't find that app." when running heroku commands in console

但是没有用

【问题讨论】:

    标签: django heroku


    【解决方案1】:

    执行以下操作:

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

    yourappname 是您的 Heroku 应用名称,而不是您的 Django 项目名称

    Renamed Heroku's hostname, now it can't find the application

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-22
      • 1970-01-01
      • 1970-01-01
      • 2020-08-08
      • 1970-01-01
      • 2018-07-07
      • 2018-12-01
      相关资源
      最近更新 更多