how to use cap deploy:set_current_revision

时间:2017-06-15 10:25:21

标签: capistrano3

how to set a capistrano deployment to some particular git previous commit. There is one command I saw cap deploy:set_current_revision
How to pass an argument to this command? cap deploy:set_current_revision=6740ee25...` ? How to use this command to set current revision to some previous git commit.

1 个答案:

答案 0 :(得分:0)

deploy:set_current_revision任务仅来自基础VCS的fetches the current revision

您需要暂时执行的操作(除非您使用CI进行部署,否则无需提交)将set :branch, '<REVID>'添加到deploy.rb。然后进行正常部署。