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.
答案 0 :(得分:0)
deploy:set_current_revision
任务仅来自基础VCS的fetches the current revision。
您需要暂时执行的操作(除非您使用CI进行部署,否则无需提交)将set :branch, '<REVID>'
添加到deploy.rb
。然后进行正常部署。