Ruby Forum Rails deployment > database.yml + CC.rb + Capistrano

Posted by scidept@gmail.com (Guest)
on 03.05.2008 00:35
(Received via mailing list)
So, I deploy my app with capistrano.

I'm trying to set up cc.rb to do it's thing.

I use a capistrano task to generate my database.yml file (with erb) on
cap deploy:setup (as per the rails way).

This leads to a /shared/config/database.yml and not any database.yml
in my repository.

As such, CC.rb can't find my database details when it goes to run the
tests.

Anyone have a solution for this? I don't know enough about CC.rb to
figure out if there's some sort of shared directory for it, or what's
going on.


Thanks,
BJ Clark
Posted by Alexey Verkhovsky (Guest)
on 03.05.2008 00:59
(Received via mailing list)
On Fri, May 2, 2008 at 4:34 PM, scidept@gmail.com <scidept@gmail.com> 
wrote:
>  As such, CC.rb can't find my database details when it goes to run the
>  tests.
>  Anyone have a solution for this? I don't know enough about CC.rb to
>  figure out if there's some sort of shared directory for it, or what's
>  going on.

Yup. As the documentation for CC.rb says, if default build behavior is
not smart enough to do the right thing, don't try to twist your
environment around it, just give it a custom Rake task or build
command for the project and bypass the default build behavior.

--
Alexey Verkhovsky
CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com]
RubyWorks [http://rubyworks.thoughtworks.com]