Heroku:如何克隆或创建团队应用程序?
Heroku: how to clone or create team app?
我已经在 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
returns 的信息似乎有效,Git URL
匹配远程 url,区域是欧盟,我在在线仪表板中配置。
我的用户在该应用的在线控制面板的访问部分中列为 admin
。
没有团队相关文档:
- devcenter.heroku.com/articles/creating-apps
- devcenter.heroku.com/articles/git-clone-heroku-app
没有cli相关文档:
- devcenter.heroku.com/articles/heroku-teams
我应该检查 heroku help create
。这会列出 -o
或 --org
作为标志以指定组织。
尝试之后出现的错误让我感到困惑 git;我还没有任何提交。
我已经在 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
returns 的信息似乎有效,Git URL
匹配远程 url,区域是欧盟,我在在线仪表板中配置。
我的用户在该应用的在线控制面板的访问部分中列为 admin
。
没有团队相关文档:
- devcenter.heroku.com/articles/creating-apps
- devcenter.heroku.com/articles/git-clone-heroku-app
没有cli相关文档:
- devcenter.heroku.com/articles/heroku-teams
我应该检查 heroku help create
。这会列出 -o
或 --org
作为标志以指定组织。
尝试之后出现的错误让我感到困惑 git;我还没有任何提交。