Using capistrano to deploy from different git branches

前端 未结 13 1068
小鲜肉
小鲜肉 2020-12-22 16:03

I am using capistrano to deploy a RoR application. The codebase is in a git repository, and branching is widely used in development. Capistrano uses deploy.rb f

13条回答
  •  醉酒成梦
    2020-12-22 16:13

    If you're using capistrano-multistage, you only need to run

    cap -s branch=$MY_BRANCH deploy
    

    or

    cap -s branch=$MY_BRANCH production deploy
    

    without any further edit to your deploy.rb.

提交回复
热议问题