网络上品:软件部置系统Capistrano演示文稿

Posted by cnruby Sat, 18 Nov 2006 19:44:00 GMT

软件部置系统Capistrano演示文稿(德文)

  • Capistrano演示文稿下载请点击这里。该文稿虽然是德文,但是相信对于不会德文的朋友也能有所帮助。
  • Capistrano使用方法请看这里



________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Posted in  | Tags ,  | no comments | no trackbacks

A Tutorial on Capistrano in a single Computer

Posted by cnruby Sat, 11 Nov 2006 05:47:00 GMT

A Tutorial on Capistrano in a single Computer

Table of contents
 (一)System Environment:

  1. 。You have an OS Windows XP as a client.
  2. 。You need to install VMWare Player version 1.0.2 to the client.
  3. 。You need to play Kubuntu version 6.0.6 as a remote server on the VMWare. You can play more than one remote server on the VMWare.
  4. 。You need to install Ruby version 1.8.4 to the client and the remote server.
  5. 。You need to install Rails version 1.1.6 to the client and the remote server.
  6. 。You need to install Subversion version 1.3.2 to the remote server(s).
  7. 。You need to install Subversion Client like Subversion version 1.3.2 for Windows to the client.
  8. 。You need to install Apache version 2.2 on the remote server(s).
  9. 。You need to install OpenSSH versopn 0.9.8a on the remote server(s).
  10. 。You need to integrate Subversion with Apache2.
  11. 。The username/password is the same across all remote servers.
  12. 。All remote servers understand POSIX commands.

 (二)Prerequisite:

  1. Your workspace on the client is at d:\works_rails.
  2. You have Capistrano installed on the Client. The Command is like the follow:
    gem install capistrano --remote
  3. A remote server IP is 192.168.1.13
  4. We deploy our application to the directory /home/kubuntu/webapps/ on every machine.

 (三)Goal:

  1. We give a developer a guide to use Capistrano on a single computer. We are deploying a Ruby on Rails web-application to a remote server or remote servers.

 (四)Solution:

  1. Create rails wep applicatrion
    rails use_capistrano
    cd use_capistrano
  2. Check the app into svn remote server
    svn import --username kubuntu --password kubuntu -m "Init" svn://192.168.1.13/app-rails/use_capistrano
  3. Get capistrano help
    cap -h
  4. Create capistrano two configuration files for the app
    cap --apply-to .
  5. Edit the configuration file deploy.rb
    vi config/deploy.rb
  6. Deploy the app to a remote server
    rake deploy

 (五)Video:

  •  

 (六)Attention:

  •  

 (七)References:

  •  

 (八)Command List:



 (九)Download File pdf:

  •  



________________________________________________________________ 您只要点击下面图标,就可以把本文加入到您喜欢的公共收藏库中去。
del.icio.us Digg | FURL | Yahoo! My Web 2.0 | Reddit | Blinklist | Fark

Posted in  | Tags , , , ,  | no comments | no trackbacks