Topic: Capistrano in a nutshell

What is it?

And what's the benefits?

I have looked at some of the blog postings, but would like to know what it does in a nutshell.

smile

Re: Capistrano in a nutshell

It's quite simple:

It's a set of rake tasks that do the deployment of your Rails app for you.

Therefore you write a recipe for it.
You say: This is my subversion respository, this is my application server, this is my databaseserver and so on.
You also can tell Capistrano how to restart your application server (mongrel, apache, ...)

Then, let's say you release the first version of your app, you make a deploy.
Capistrano then just loggs onto the servers you told it, and executes some shell commands, like pulling the latest code from the respository and restarting your server.

After that, you have your first version online, and develop a bug fix.
To bring the bugfix to your servers, you just have to depoy again. Capistrano makes the work then for you.

Benefits:
You have to think once, what things have to be done when deploying your app, write this in your recipe and it works.
Also other developers how don't know how to deploy a new version can this do with Capistrano, because it's all in the recipe.

The full power of Capistrano you will realize when you have more than one application or database server.
Because then Cap does the job on all machines for you. When you would do int manually, you would have to do the same steps 2 or more times every time you want to deploy a new version.

Thats *basically* Capistrano :-)

My homepage: http://www.komendera.com/
Working at: http://www.abloom.at/
My blog: soaked and soaped http://soakedandsoaped.com/

Re: Capistrano in a nutshell

Am I correct in thinking Capistrano doesn't work with windows?

Re: Capistrano in a nutshell

Deploying *from* windows is supported.

Deploying *to* windows is *not* supported.

My homepage: http://www.komendera.com/
Working at: http://www.abloom.at/
My blog: soaked and soaped http://soakedandsoaped.com/

Re: Capistrano in a nutshell

dylanfm wrote:

Am I correct in thinking Capistrano doesn't work with windows?

You can deploy from Windows to a Linux/OS X/BSD server, but you can't deploy to a Windows server. Then again, deploying any Rails app to a Windows server is an exercise in pain and generally not worth doing.

vinnie - rails forum admin

Re: Capistrano in a nutshell

Just another reason to convert to Mac.  smile

Thanks Dieter by the way, very useful.