我已经建立了我的主Heroku远程运行我的主干和一个Heroku-dev远程,我希望运行一个备用分支。
我的问题是因为我的备用分支不是主人,Heroku不会建立它。
$ git push heroku-dev test 计数对象... ... 推送到非主分支,跳过构建。 到git@heroku:example-dev.git * [new branch] test - >测试现在不能将此版本切换到主版本。很明显,有一种选择是创建一个全新的git repo,它是我的测试分支的一个克隆,但这听起来不太理想。
解决方案git push heroku-dev测试:master 您可以使用Git将另一个分支推送到Heroku。
这会将您的本地测试分支推送到远程的主分支(在Heroku上)。
I have a project hosted on Heroku and it's gotten to the point where I want to make an alternate test server (so I can test Heroku workers without messing up production).
I have already set up my main Heroku remote running my trunk and a Heroku-dev remote on which I wish to run an alternate branch.
My problem is that since my alternate branch isn't master, Heroku won't build it.
$ git push heroku-dev test counting objects ... ... Pushed to non-master branch, skipping build. To git@heroku:example-dev.git * [new branch] test -> testSwitching this build to master is not an option at the moment. Obviously one option is to create a whole new git repo that's a clone of my test branch, but that doesn't sound very ideal.
解决方案You can push an alternative branch to Heroku using Git.
git push heroku-dev test:masterThis pushes your local test branch to the remote's master branch (on Heroku).
更多推荐
让Heroku运行非主Git分支
发布评论