logo       

Re: Saving ouput from each server to separate file?: msg#00124

lang.ruby.capistrano.general

Subject: Re: Saving ouput from each server to separate file?


Figured that out:

run "date" do |ch, stream, output|
File.open(ch[:host] + ".output", "a") { |file| file << output }
end

Is there an easy way to show the output in the default way *and* save
it to the file at the same time - using "run" with a block suppresses
the default output.


On 16 Lis, 11:04, szimek <szi...-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
> Hi!
>
> Is there some way to save output from eachserverto a separate file?
> I'm deploying an app (not Rails app) and need to install it on eachserver.
> The setup script produces tons of output and it would be
> really convenient if I could have output from eachserverseparately.
>
> BTW. The files that I'm deploying unfortunately havenameof a
> platform in them - i.e. client-Linux, client-SunOS, client-HP and so
> on. How to set capfile, so I can deploy to all machines with one
> command, but each platform will know which file to download? Can I
> make nested roles?
>
> I've installed capistrano yesterday, so I would be really grateful for
> simple step by step instructions :)


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

News | FAQ | advertise