Deploying to multiple servers

后端 未结 11 2442
星月不相逢
星月不相逢 2020-12-31 17:21

I have to deploy my php/html/css/etc code to multiple servers and i am looking at my options for software that allows easy and secure deployment to multiple servers.

11条回答
  •  北海茫月
    2020-12-31 17:36

    I'll second Capistrano. It's incredibly powerful and flexible. Our current project uses Capistrano for deploying to different servers as well as multiple servers. We pass two arguments to the cap command: 1) the name of the set of machine specific config options to run and 2) the name of the action to run

    ends up looking like this:

    cap -f deploy.rb live deploy
    

    or

    cap -f deploy.rb dev deploy
    

    Of course the default use case - deploy to lots of machines at once - is a doddle with Capistrano AND you don't need to have Capistrano on the machines you are deploying to. All in all, tasty technology.

提交回复
热议问题