Deploying a Rails App to Multiple Servers using Capistrano - Best Practices

前端 未结 2 1873
情歌与酒
情歌与酒 2020-12-02 06:02

I have a rails application that I need to deploy to 3 servers - machine1.com, machine2.com and machine3.com. I want to be able to deploy it to all machines at once and each

2条回答
  •  醉话见心
    2020-12-02 06:49

    I had to use a slightly different syntax.

    role :app, %w{s01.foobaz.com s02.foobaz.com}, user: 'deployer'
    role :web, %w{s01.foobaz.com s02.foobaz.com}, user: 'deployer'
    

提交回复
热议问题