Last active
December 16, 2015 18:49
-
-
Save TakashiSasaki/5480126 to your computer and use it in GitHub Desktop.
Google App Engine for Pythonアプリの全バージョンの全ログをぶっこ抜く。
Google App Engineでappcfg.pyを使ってログを取得しようとするとバージョン文字列を指定しなければならない。そこで過去にデプロイしたことがあるすべてのバージョン文字列を得る必要があった。なお、バージョン文字列が特定できれば次のコマンドで当該バージョンのログを取得することができる。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appcfg.py --secure --include_all --num_days=0 request_logs /path/to/my/gaeapp\ | |
--version=version_string version_string.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Google App Engine for Pythonアプリのgitリポジトリから全てのバージョン文字列を得る方法 | |
git log --oneline -- app.yaml | \ | |
sed -e 's/^\([a-z0-9\]\+\).*$/git show -r \1 -- app.yaml/' | \ | |
sh | grep -E "^[-+]version" | sed -e 's/^[+-]version:[ \t]*//' | \ | |
sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment