Skip to content

Commit

Permalink
Fixed log bloat caused by chatty static-content:deploy
Browse files Browse the repository at this point in the history
This is to workaround the way capistrano handles buffering, as was noted in magento/magento2#3692. The workaround here (I believe) will require core-utils be installed on the remote server. Eventually I'd like to see the use of stdbuf removed, in favor of a --no-progress flag on the cli tool.
  • Loading branch information
David Alger committed Apr 27, 2016
1 parent a36d278 commit 4637d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/magento.rake
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace :magento do
# compilation is successful. Once the aforementioned bug is fixed, pass a "-q" flag to
# 'setup:static-content:deploy' to silence verbose output, as right now the log is being filled with
# thousands of extraneous lines, per this issue: https://github.com/magento/magento2/issues/3692
output = capture :php, '-f bin/magento -- setup:static-content:deploy', verbosity: Logger::INFO
output = capture :php, '-f bin/magento -- setup:static-content:deploy | stdbuf -o0 tr -d .', verbosity: Logger::INFO

# TODO: add method to output heading messages such as this
if output.to_s.include? 'Compilation from source'
Expand Down

0 comments on commit 4637d67

Please sign in to comment.