Wednesday, April 25, 2007

How to use Capistrano


Capistrano is a simple but a powerful deployment tool...


To use Capistrano for deployment, please read the following lines


(Note : Instructions are given for ROR development. )


1. Install Capistrano Gem


"gem install capistrano"


2. Run this command from your local system


"cap --apply-to /path/to/your/app YourApplicationName"


3. Execute the setup task


"rake remote:setup"


this command will setup the directory structure to deploy...


4. Execute the cold_deploy task


"rake remote:cold_deploy"


this command will run, deploy your application to the server...


Now Your application will run



Once you’ve finished the above, your server is ready to have new versions of your
application deployed to it anytime you would like. All you need to do is commiting your changes into Subversion and then redeploy using the following command on your local computer

"rake remote:deploy"


Capistrano OVER....


you can see "how to write capistrano task" in coming posts.