How to deploy to a single specific server using Capistrano

后端 未结 5 1524
半阙折子戏
半阙折子戏 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:50

    The following should work out of the box:

    cap HOSTS=app2.example.com ROLE=app deploy
    

    If you want to deploy to >1 server with the same role:

    cap HOSTS=app2.example.com,app3.example.com,app4.example.com ROLE=app deploy
    

提交回复
热议问题