|
Re: Saving ouput from each server to separate file?: msg#00124lang.ruby.capistrano.general
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> |
|---|---|---|
| Previous by Date: | Re: Cap 2.1, Mac OS and ssh-askpass?: 00124, Scott |
|---|---|
| Next by Date: | Re: cap 2 - cap deploy:setup not using sudo?: 00124, Jamis Buck |
| Previous by Thread: | Saving ouput from each server to separate file?i: 00124, szimek |
| Next by Thread: | dependencies: 00124, John Joseph Bachir |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |