Capistrano and Drupal
Using Capistrano for Drupal deploying. Sounds cool, and should be possible. Lets talk about hos this should be done, and if this is feasible.
I plan to drop the sympal-scripts -which, in fact want to be a capistrano-only-for-drupal-in-PHP- in favour of a good working capistrano drupal thingie.
Groups:
Login to post comments

An earlier conversation over mail, with good resources
So to answer your question, I have no experience in using Capistrano.
Deploying Drupal via Capistrano is a theory that I would like to test out
soon. I figure if it's works for Wordpress, it's worth a try with Drupal.
Some decent supporting documentation:
Capistrano http://www.simplisticcomplexity.com/2006/8/16/automated-php-deployment-w...
Capistrano http://www.whomwah.com/2006/05/21/deploying-wordpress-using-capistrano/
Capistrano http://blog.craz8.com/articles/2006/09/02/deploying-wordpress-on-dreamho...
Using Capistrano with Perl or
PHP http://nubyonrails.topfunky.com/articles/2006/03/09/using-capistrano-wit...
The page you linked to are the assumptions that it makes. Some of this can
be changed via the recipe
filehttp://manuals.rubyonrails.com/read/chapter/102#page273.
The scm variable can take svn, cvs, or darcs. And in the
THANKShttp://dev.rubyonrails.org/browser/tools/capistrano/THANKS?rev=4830file,
it seems to indicate possible support for Bazaar (v1), Perforce,
Bazaar-NG, and Mercurial (my personal preference).
The directory structure requirements may be harder to deal with, but I'm
going to see what I can do. The ability to use tasks may give me more power
than I'm currently aware of.
As I said earlier, the reason I'm looking for something else is that anon
CVS wasn't working on one of the hosts. I'm trying to find an alternate way
to make deployment easier. If this doesn't work, I'm thinking of using
mercurial or bzr to hold the site configurations and do a push to the
different hosts.
I'm not a Rails fanboy (I did try it, but couldn't grok it), but I am
jealous of their tools like gems, and rake w/ capistrano. I would like to
see Drupal use a package manager, and I would rather not reinvent the wheel
to do it. I know a dependency system is needed before this can happen, but
with the install/uninstall hooks being added, dependencies will be the
(eventual) natural evolution.
-cb
On 9/15/06, Bèr Kessels <ber@***> wrote:
>
FastCGI on Drupal, Okay!
Not really on your topic, which is good, but so as to prevent false rumours - FastCGI and Drupal have worked together fine in my experience (and others', i've heard).
Checking out capistrano now ..
Thanks - and a great idea
Thanks for the links on using Capistrano with other PHP-based systems. I discovered RoR about 6 months ago, and love it, but am now putting together a Drupal project. Being new to Drupal, I'm trying to find ways to keep some of the things I love best about working in RoR in place.
In addition to Capistrano, I'd love to find some way to bring migrations over to my PHP projects, and also testing (unit/integration). Both of them are also key features in Rails, that have shifted the way I maintain live sites, and develop projects, for the better, and I'll miss them if I can find decent substitutes ;-)
I'll post here what I do learn, when I'm able to...
Cameron
About Migrations:
I've done tests and proof of concepts on this matter. So you might be interested in my post(s) on sympal scripts.
To be precise, the following goal in the 'manual' may be interesting:
Could you explain
What a Symbal script is? ANd what creating a fixtures from a site would do? How does this help us for migrations? To me that is about the only thing missing for me, that would keep me from using capistrano.
--
Christian
Rails
Cameron;
I'm about to make a technology decision, drupal or rails. Your comment suggest that you may be an objective resource. Perhaps you have some thoughts that could help. The site I'm planning will be an industry portal, with archives, articles, documents for download, news feeds, a blog and a discussion forum. More importantly there will be significant interactive functions, buying, selling and trading. My impulse is to go with rails for the ability to customize, but Drupal has many of the required functions plus more already in place.
If you were considering such, would you Drupal or Rail. Or use a combo and why. Make any assumptions you wish.
Thanks for considering my questions
Panama
Good idea
I'm primarily developing with Rails these days but have a few clients for whom I use drupal. I'd love to see Capistrano working with drupal.
When I work on a drupal app I tend to store my 'sites/default' folder in subversion and check that out into a download of the latest drupal release. I'd love to be able to use capistrano to automate that, along with
update: and request for support :)
I have started playing with capistrano, mostly trying to distribute, and install a sillly little rails APP I wrote for this purpose.
I am gettign the feeling, and I am liking it a lot.
If people are familiar with capistrano, I would love to hearfrom them, so that we can get this rolling earlier :)
Initial attempt
I finally got fed up of updating drupal sites by hand and made a stab at using capistrano to manage deployments. So far it seems to work pretty well with a single site per drupal install, and should be pretty easy to scale to multiple sites. I wrote it up at:
http://jystewart.net/process/archives/2007/02/using-capistrano-for-drupa...
Create a task library for Drupal?
I started work on a task library that overrides some of the default tasks to do more sensible actions for a drupal installation. So far so good.
Anyone interested in helping?
I would like to make a gem, but don't think I will host it on rubyforge. I think we can just host it here. Where can i put the code?
I should also note I never deployed a rails app with capistrano, so I lack experience in that realm. So I could use some help with best practice from a capistrano perspective
--
Christian
We use Drupal + Capistrano
We are Rails people that use Drupal for CMS jobs and also for several social networks implementations.
We use Capistrano to handle the deploy. You can read about it (and find the recipes) here: http://blog.mikamai.com/2008/07/sweeter-nicer-drupal-with-capistrano/
Thank you! I am trying
Thank you! I am trying something similar right now.
Sam Rose
Social Synergy
Open Source Ecology
P2P Foundation
AutoPilot module?
Just ran into this:
http://drupal.org/project/autopilot
No experience with it but it also tries to deal with deployment of Drupal from testing to staging to production.