How do I target a specific commit SHA with capistrano deploy

前端 未结 4 560
南旧
南旧 2021-01-30 07:11

I am wondering how I can target a specific commit SHA in Git for deployment, using Capistrano? It should be something like

cap deploy --version=

        
4条回答
  •  悲哀的现实
    2021-01-30 07:30

    molf's answer didn't work for me (using capistrano 2.11.2). I had to use "revision" instead of branch, like this:

    cap -S revision=80655da8d80aaaf92ce5357e7828dc09adb00993 deploy
    

提交回复
热议问题