Capistrano - How to deploy to multiple cloud servers

前端 未结 2 1360
北海茫月
北海茫月 2021-02-06 16:44

I\'ve heard that Capistrano supports deployment to multiple servers, but I haven\'t found a practical way to set it up. When I say multiple servers I mean servers running the sa

2条回答
  •  日久生厌
    2021-02-06 17:27

    I had to use a different syntax with Rails 4.

    role :app, %w{s01.app.com s02.app.com}
    role :web, %w{s01.web.com s02.web.com}
    

提交回复
热议问题