【问题标题】:Git update Play app HerokuGit 更新 Play 应用 Heroku
【发布时间】:2016-05-14 07:24:58
【问题描述】:

我从 git 控制台创建了一个 cedar 堆栈,并更改了 Heroku 从 Heroku Web 应用程序设置的默认应用程序名称。现在,当我从 git 推送新更新时,出现错误 -App not found。 如何正确设置?

【问题讨论】:

  • 运行git push heroku master或类似的时候出现这个错误?
  • 是的。如何确保应用程序名称在 Heroku 的子域和 git 中的设置都相同?

标签: heroku playframework


【解决方案1】:

您必须通过编辑 .git/config 文件并输入新名称来更新本地 git 配置。

您的 git 配置应如下所示:

[remote "heroku"]
  url = git@heroku.com:oldname.git
  fetch = +refs/heads/*:refs/remotes/heroku/*

还有新的:

[remote "heroku"]
  url = git@heroku.com:newname.git
  fetch = +refs/heads/*:refs/remotes/heroku/*

【讨论】:

    【解决方案2】:

    niko_ekito wrote in his answer 一样,您可以手动编辑.git/config 文件。不过你也可以use Heroku's command line client:

    $ git remote rm heroku
    $ heroku git:remote -a newname
    

    或者你可以使用git remote set-url:

    $ git remote set-url heroku git@heroku.com:newname.git
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-22
      • 1970-01-01
      • 2017-01-23
      • 2020-10-06
      • 2018-08-11
      • 2012-07-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多