让 Heroku 运行非主 Git 分支 - Make Heroku run non-master Git branch

问题:

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).我有一个在 Heroku 上托管的项目,它已经到了我想要制作备用测试服务器的地步(这样我就可以测试 Heroku 工作人员而不会弄乱生产)。

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.我已经设置了运行主干的主 Heroku 远程和我希望运行备用分支的 Heroku-dev 远程。

My problem is that since my alternate branch isn't master, Heroku won't build it.我的问题是,由于我的备用分支不是 master,Heroku 不会构建它。

$ git push heroku-dev test
counting objects ...
...
Pushed to non-master branch, skipping build.
To [email protected]:example-dev.git
* [new branch]      test -> test

Switching 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.显然,一种选择是创建一个全新的 git 存储库,它是我的测试分支的克隆,但这听起来不太理想。


解决方案:

参考一: https://en.stackoom.com/question/zERe
参考二: https://stackoom.com/question/zERe
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章