HI Lee,
The problem is if 2>&1 after pipe symbol there is no out put ..
It was getting stuck ... the problem exactly is when i apply pipe symbol .
In my old version capistrano same script is working .
$CAPEXE $1 $2 1>&2 | tee >( grep -v '** \[err ::' > $CAPOUTFILE ) >( egrep
"** \[err ::|rolling back|Not a valid URL" > $CAPERRFILE)
On Tuesday, February 24, 2015 at 5:13:37 PM UTC+5:30, junior wrote:
>
> Hi All ,
> Im new to this capistrano , rails project .
>
> I have one issue . while deploy rails code with capistrano i can able to
> see the logs in terminal .
> But unable to print into a file ...
>
> i have tried linux native method
>
> cmd > output.log not working
> cmd 2>&1 | tee also not working...
>
> Which is the best way to capture capistrano stadard output & error
> redirect into an file
>
> Thanks in advance .
>
>
>
> ruby version = ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
> cap version = Capistrano Version: 3.3.5 (Rake Version: 10.4.2)
> os -= centos 6.5 64bit
> gem version = 2.4.5
>
>
>
>
>
>
> Versions:
>
> - Ruby
> - Capistrano
> - Rake / Rails / etc
>
> Platform:
>
> - Working on....
> - Deploying to...
>
> Logs:
>
> - Please past logs (as completely as possible to a 3rd party pasting
> service such as pastie.org)
>
> Files:
>
> - Capfile
> - deploy.rb
> - Stage files (production.rb, staging.rb)
>
>
--
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/capistrano/df260101-8938-4290-a4ae-6086104e2503%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.