On 16/01/2007, at 2:24 AM, [EMAIL PROTECTED] wrote:


I'd like to use Capistrano to deploy some non-Rails apps that I use.

Let me tell you, Capistrano is very well suited for this however it may require some coding by you to achieve this as the default recipes are aimed at Rails installations.

<snip>
Specifically, I'm looking to:

1. Deploy/Update applications from SVN to multiple web servers

This will require you to override the :deploy task.
http://dev.rubyonrails.org/browser/tools/capistrano/lib/capistrano/ recipes/standard.rb#L68 You can do this in your deploy.rb or in ~/.caprc by simply defining the task again. Easy!

2. Restart my web servers

apache.rb is a library by Bradley Taylor which is distributed under LGPL in the railsmachine gem. You can see an example of restarting apache (and pushing out config!) in it. http://trac.deprecated.org/trac.cgi/browser/trunk/lib/deprec/ third_party/railsmachine/recipes/apache.rb#L16

3. Run a database backup routine and move the files to a backup
directory

Reading through the standard capistrano tasks should give you some ideas. This is really easy with Cap. http://dev.rubyonrails.org/browser/tools/capistrano/lib/capistrano/ recipes/standard.rb

It seems like the basic idea is you create a task in your recipe, then
specify that task as a command line argument. (Unfortunately, that's
about as far as I've gotten with it)

That's pretty much it. The magic is in the ssh handling and task libraries you get for free when you start using Capistrano. Plus you can remove the repetition that is so common with orphan deployment and sysadmin scripts.

Have a look at the gems that are available for capistrano: deprec, vmbuilder, railsmachine and more...

- Mike


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to