The first section describes the Gitolite mirror, which allows the code to be routed to the internal network of the server group, but then how to deploy the code to thousands of servers, and also to implement code rollback?
Shell tools? It's a lot quicker for me now, and it's much faster than learning a new software. But remember the old boy's Li has written a blog, "Dude, don't tease, write a script that really does not call operation Automation!", the Python script is not called automation, I still do not write shell. Therefore, you must learn the "bulk code deployment, rollback, execution" tool, such as Capistrano.
Capistrano is developed using the Ruby language, so you know Ruby can use Capistrano skillfully. Since capistrano3.x needs to use the ruby version above ruby1.9, I chose 2.x.
I am using CentOS6.4, with "ruby-1.8.7.352-7.el6_2.x86_64":
# yum Install ruby# yum intall rubygems# gem install capistrano-v 2.15.5 # Gem Install Capistrano-ext
This article is from the "Go Right on" blog, so be sure to keep this source http://caduke.blog.51cto.com/3365689/1599458
Gitolite mirror+capistrano2.1.5+hudson3.2.1 realizes semi-automatic operation and maintenance (II.)