How to deploy to a single specific server using Capistrano

后端 未结 5 1526
半阙折子戏
半阙折子戏 2020-12-12 10:10

I have a system in production that has several servers in several roles. I would like to test a new app server by deploying to that specific server, without having to redepl

5条回答
  •  情书的邮戳
    2020-12-12 10:43

    You can also specifiy task-level hosts parameter this way:

    task :ship_artifacts, :hosts => ENV['DEST_HOST']  do
    
    end 
    

提交回复
热议问题