A Tutorial on Capistrano in a single Computer
A Tutorial on Capistrano in a single Computer
Table of contents
- (一)System Environment
- (二)Prerequisite
- (三)Goal
- (四)Solution
- (五)Video
- (六)Attention
- (七)References
- (八)Command List
- (九)Download File pdf
(一)System Environment:
- 。You have an OS Windows XP as a client.
- 。You need to install VMWare Player version 1.0.2 to the client.
- 。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.
- 。You need to install Ruby version 1.8.4 to the client and the remote server.
- 。You need to install Rails version 1.1.6 to the client and the remote server.
- 。You need to install Subversion version 1.3.2 to the remote server(s).
- 。You need to install Subversion Client like Subversion version 1.3.2 for Windows to the client.
- 。You need to install Apache version 2.2 on the remote server(s).
- 。You need to install OpenSSH versopn 0.9.8a on the remote server(s).
- 。You need to integrate Subversion with Apache2.
- 。The username/password is the same across all remote servers.
- 。All remote servers understand POSIX commands.
(二)Prerequisite:
- Your workspace on the client is at d:\works_rails.
- You have Capistrano installed on the Client. The Command is like the follow:
gem install capistrano --remote - A remote server IP is 192.168.1.13
- We deploy our application to the directory
/home/kubuntu/webapps/on every machine.
(三)Goal:
- 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:
- Create rails wep applicatrion
rails use_capistrano
cd use_capistrano - Check the app into svn remote server
svn import --username kubuntu --password kubuntu -m "Init" svn://192.168.1.13/app-rails/use_capistrano - Get capistrano help
cap -h - Create capistrano two configuration files for the app
cap --apply-to . - Edit the configuration file deploy.rb
vi config/deploy.rb - Deploy the app to a remote server
rake deploy
(五)Video:
(六)Attention:
(七)References:
(八)Command List:
(九)Download File pdf:
Welcome
You’re currently reading the page “A Tutorial on Capistrano in a single Computer.
