logo       

Re: Capistrano rails app deployment without DB: msg#00173

lang.ruby.capistrano.general

Subject: Re: Capistrano rails app deployment without DB

If you are using the deploy:cold task, if expects to run migrations and thus needs a db role. What you want is to not define a db role at all, and then run parts of the deploy:cold task that you want, manually, e.g.:

cap deploy:update deploy:start

You could, of course, override the deploy:cold task to suit your own needs:

deploy.task :cold do
deploy.update
deploy.start
end

- Jamis

On Nov 27, 2007, at 5:47 AM, MrBanabas-gM/Ye1E23mwN+BqQ9rBEUg@xxxxxxxxxxxxxxxx
wrote:


Hi,

On Nov 27, 11:30 am, "Andreas Wolff"
<rubyph...-gM/Ye1E23mwN+BqQ9rBEUg@xxxxxxxxxxxxxxxx> wrote:
What's the error message?

Well, depends, for role:db, nil undefined method `match' for
nil:NilClass
for role:db, "" connection failed for: (Errno::EBADF: Bad file
descriptor - connect(2))
When removing the whole line... I get an no db role defined error.

--
Volker

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to capistrano- unsubscribe-/JYPxA39Uh5TLH3MbocFFw@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/ group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise