cheat sheets.

$ cheat ey
Engineyard gem
--------------


  Track some process on your nodes
  --------------------------------

  ey ssh "uname -n&&ps -ef|egrep -i '[r]esque-1.+w' " -e app_name_live --all


  Dig log files
  -------------

  ey ssh 'cat /data/your_app_name/current/log/production.log | egrep
  "search_pattern"' -e app_name_live --app-servers

  ey ssh 'zcat /data/your_app_name/current/log/production.log-20110630.gz |
  egrep "search_pattern"' -e app_name_live --app-servers

  ey ssh 'zcat /data/your_app_name/current/log/production.log-2011062*.gz |
  egrep "search_pattern"' -e app_name_live --app-servers

  ey ssh 'zcat /data/your_app_name/current/log/production.log-2011062{1,2,3}.gz
  | egrep "search_pattern"' -e app_name_live --app-servers
Version 1, updated 282 days ago.
. o 0 ( edit | history )
( add new | see all )