Ruby & Rubygem
因为要搞程序自动部署的东西,所以搞Ruby,不是我要学。呵呵
Ruby和Rubygem的性质,感觉就像Perl和Cpan那样,一些扩展的东西,可以通过Rubygem来装。但是效率和速度就不敢恭维了。基本上通过gem安装包比较爽。
http://www.capify.org/
Capistrano( 自动实施工具)
- Great for automating tasks via SSH on remote servers, like software installation, application deployment, configuration management, ad hoc server monitoring, and more.
- Ideal for system administrators, whether professional or incidental.
- Easy to customize. Its configuration files use the Ruby programming language syntax, but you don't need to know Ruby to do most things with Capistrano.
- Easy to extend. Capistrano is written in the Ruby programming language, and may be extended easily by writing additional Ruby modules.
http://www.capify.org/install 安装过程
下载 gem,不要用 gem install -y capistrano ,用了会累死人的。
直接下载gem,然后用 gem install -l filename.gem
先下载以下两个包,要不然cap的时候就会出错
wget http://rubyforge.rubyuser.de/gems/net-ssh-gateway-1.0.0.gem
wget http://rubyforge.rubyuser.de/gems/net-ssh-2.0.4.gem
wget http://rubyforge.org/frs/download.php/42110/capistrano-2.5.0.gem
sudo gem install -l net-ssh-gateway-1.0.0.gem net-ssh-2.0.4.gem capistrano-2.5.0.gem
/var/lib/gems/1.8/bin/cap -H
Q: 'require': no such file to load -- net/ssh/gateway (LoadError)
A: sudo gem install -l net-ssh-gateway-1.0.0.gem
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home