Actually, I'd recommend you just pull the :roles constraint
altogether, and just leave in the :except => { :no_release => true }
part. That way, regardless of the roles, code gets pushed to all
servers in the same way as the other deployment strategies.

- Jamis

On 9/17/07, heimdull <[EMAIL PROTECTED]> wrote:
>
> This is the code that does the rsync updating to the servers and it
> fails when the database server and the app server is not on the same
> server.
>
>
>   6      class RsyncWithRemoteCache < Remote
>   7
>   8         # The deployment method itself, in three major steps.
>   9         def deploy!
>  10
>  11           # Step 1: Update the local cache.
>  12           system(command)
>  13           File.open(File.join(local_cache, "REVISION"), "w") { |f|
> f.puts(revision) }
>  14
>  15           logger.trace "copying local cache to remote"
>  16           find_servers(:roles => [:app], :except => { :no_release
> => true }).each do |server|
>  17             # Step 2: Update the remote cache.
>  18             system("rsync -az --delete #{local_cache}/
> [EMAIL PROTECTED]:#{repository_cache}/")
>  19             # Step 3: Copy the remote cache into place.
>  20             run("cp -a #{repository_cache}
> #{configuration[:release_path]} && #{mark}")
>  21           end
>  22
>  23         end
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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