I've got a situation where I have 2 physical servers, each of which
have 2 nodes of an IBM WebSphere Portal cluster on it.

I'm using capistrano for the deployment and staging (very
successfully), and am now trying to use cap for tailing the logs on
those servers, but because each node puts it's logs into a separate
folder there are 2 logs on each server, any ideas how I could use the
cap 'stream' command in this situation?

i.e.:

appserver01:
  /usr/local/IBM/appserver01/clone01/logs/SystemOut.log
  /usr/local/IBM/appserver01/clone02/logs/SystemOut.log
appserver02:
  /usr/local/IBM/appserver02/clone03/logs/SystemOut.log
  /usr/local/IBM/appserver02/clone04/logs/SystemOut.log


normally I would do something like this:

role(:targets) {['appserver1.com','appserver2.com'}

task :viewlogs, :roles => :targets do
    stream 'path to log file'
end

but in this case 'path to log file' is different on each server, and
each server has 2 of them.

Any ideas?

Thanks in advance.

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to