The :db question has come up before on the list: essentially, the answer
to "why does my code have to be on the db server" is "it doesn't". Just
set one of your app servers to be the primary db server. Capistrano only
uses the :db role to determine where to run migrations.

- Jamis

On 3/11/09 9:21 AM, walt_d wrote:
> Hi -
> 
> I cap my websites all the time - and am loving it, thanks to Jamis!
> 
> But I've been assigned to a job which will take me on "the grand
> tour" (with three tier* deployment) - and I just cannot seem to get my
> deploy.rb right :(
> 
> Does anyone have thoughts/experiences to share - or the magical three
> words to type into my 'googlescope' :)
> 
> My physical world is like this (with me temporarily on the "inside" -
> ie able to address all servers directly from 10.4.3.x):
> 
> firewall: 10.4.3.1 - admin assures me that all ssh will go through
> this
> webserver: 10.4.3.221, Apache and passengers ;) (ssh port 22221)
> git repository: 10.4.3.222 (ssh port 22222)
> dbserver: 10.4.3.220, MySQL (ssh port 22220)
> except for the firewall, all accessible with public key as user
> "www_user" (ie I can do: ssh webserver -lwww_user)
> 
> My eminent problem is that my role :db does not seem to work! When I
> cap deploy, I get this error:
> 
>  ** [10.4.3.220 :: err] fatal: could not create work tree dir '/data/
> napkins/shared/cached-copy': Permission denied.
> 
> And I do not understand, what my "code" is doing on the db-server -
> why do the role :db try to update_code on my db-server?
> 
> 
> 
> 
> 
> * - ehh, I know that this setup does not qualify for the "gold
> standard three tier" - but, hey, at least it includes 3 servers with
> different purposes :D
> > 


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

Reply via email to