Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a specific revision with capistrano 3

How can I deploy a specific git revision with Capistrano 3?

The Capistrano 2.9 approach doesn't work anymore

$cap -S revision=80655da8d80aaaf92ce5357e7828dc09adb00993 deploy
invalid option: -S
like image 505
Albert Avatar asked Jan 10 '14 04:01

Albert


1 Answers

The parameter seems to be gone in Capistrano 3. You have to set the env variable REVISION="revision" and include it in your deploy.rb

set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"]
like image 152
Albert Avatar answered Sep 16 '22 14:09

Albert