Heroku:如何克隆或创建团队应用程序?

时间:2016-07-22 10:45:34

标签: heroku heroku-toolbelt

我已经在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与远程网址匹配,区域为eu,我在在线信息中心配置。 我的用户在该应用的在线信息中心的访问部分中列为admin

没有与团队相关的文档:

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

没有与cli相关的文档:

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

1 个答案:

答案 0 :(得分:0)

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

相关问题