我最近在osx lion上设置了dev/staging/production环境。我有一个带有开发和主分支的git repo,以及一个具有主和分段起源的heroku实例。
基本的工作流程是在开发分支中进行开发,合并到master,部署到staging,最后部署到production。
当我在任何不是master的分支中时,我想阻止heroku部署,或者至少显示一个警告(例如,“您想继续吗?”是/否)。
这可能吗?有没有一个git或heroku特性可以帮助实现这一点,或者我需要编写一个bash脚本?

最佳答案

来自Herokudocumentation

Branches pushed to Heroku other than master will be ignored.

09-10 19:14
查看更多