【发布时间】: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
【问题讨论】: