我已经在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
。
没有与团队相关的文档:
没有与cli相关的文档:
答案 0 :(得分:0)
我应该检查heroku help create
。这会将-o
或--org
列为标志以指定组织。
我在尝试之后得到的错误,让我困惑了与git相关的地方;我还没有任何提交。