Capistrano 3 copy strategy equivalent

后端 未结 3 1183
醉酒成梦
醉酒成梦 2021-02-20 16:25

I updated to Cap 3 and it appears that set :deploy_via, :copy is no longer supported. In the release annoucement there is a link to a video for replicating the copy

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-20 16:47

    There is one work in the exact same way

    https://github.com/xuwupeng2000/capsitrano-scm-gitcopy

    Capistrano 3 :copy

    A copy strategy for Capistrano 3, which mimics the :copy scm of Capistrano 2. This Gem is inspired by and based on https://github.com/wercker/capistrano-scm-copy. Thank wercker so much.

    This will make Capistrano tar the a specific git branch, upload it to the server(s) and then extract it in the release directory.

    Usage

    cap uat deploy -s branch=(your release branch)

提交回复
热议问题