Skip to content

Instantly share code, notes, and snippets.

@nog
Created March 5, 2012 05:40
Show Gist options
  • Save nog/1976905 to your computer and use it in GitHub Desktop.
Save nog/1976905 to your computer and use it in GitHub Desktop.
Rails3のログがAssetPipelineで著しく見難かったので試行錯誤した上の最終解をメモしておく。空行0も見難いんだけど最後の"-A 1"でリクエスト毎のセパレータ出せて見易くなった。
#with rails server
echo "STDOUT.sync = true" >> config/environments/development.rb
rails s | grep --line-buffered -vE '(Started GET "/assets/|Served asset|^$)' -A 1
#with tail -f
tail -f log/development.log | grep --line-buffered -vE '(Started GET "/assets/|Served asset|^$)' -A 1
@nog
Copy link
Author

nog commented Mar 5, 2012

rails serverの場合Rubyの標準出力バッファ無くす設定入れなきゃいけないの忘れてた。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment