【问题标题】:Heroku: how to clone or create team app?Heroku:如何克隆或创建团队应用程序?
【发布时间】:2016-11-26 05:48:27
【问题描述】:

我在 Heroku 中创建了一个团队,现在我想通过 cli 在该团队中创建一个应用程序,但似乎没有与团队相关的 cli 标志。 我基本上希望得到类似的东西:

heroku create myteamapp --org myteam

我也可以在在线仪表板中创建应用程序,但是当我这样做并且克隆应用程序时,由于某种原因我无法推送。我做了什么(我为假名补充了名字):

$ git:clone -a myteamapp 
Cloning into 'myteamapp'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
$ git remote -v
heroku  https://git.heroku.com/myteamapp.git (fetch)
heroku  https://git.heroku.com/myteamapp.git (push)
$ git push heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'https://git.heroku.com/myteamapp.git'

当我运行 heroku apps --org myteam 时会列出该应用。
heroku info 返回的信息似乎有效,Git URL 匹配远程 url,区域是 eu,我在在线仪表板中配置。 我的用户在该应用程序的在线仪表板的访问部分中列为admin

没有与团队相关的文档:

  • devcenter.heroku.com/articles/creating-apps
  • devcenter.heroku.com/articles/git-clone-heroku-app

没有 cli 相关文档:

  • devcenter.heroku.com/articles/heroku-teams

【问题讨论】:

    标签: heroku heroku-toolbelt


    【解决方案1】:

    我应该检查一下heroku help create。这将-o--org 列为指定组织的标志。 我在尝试之后遇到的错误,让我很困惑与 git 相关的地方;我还没有任何提交。

    【讨论】:

      猜你喜欢
      • 2018-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-24
      • 1970-01-01
      • 2017-03-18
      • 1970-01-01
      相关资源
      最近更新 更多