2011年1月19日水曜日

Androidアプリのバグ報告システム(アプリケーションのアップロード試してみる編)

以下のスタートガイドを参考に、
前回までに作成した開発環境をいじってみることで、なんとなく、
Google App Engine と Python が分かってきた気がします。

スタート ガイド: Python
http://code.google.com/intl/ja/appengine/docs/python/gettingstarted/

スタートガイドでは締めくくりとして、"アプリケーションのアップロード" を実施しています。

これは、ガイド内で作成した helloworld アプリを
Google App Engine サイトにアップロードする手順になっています。

以下に、実際にやってみた際の記録をメモしておきます。

helloworld アプリは C:\Python_Test\helloworld に配置しています。

  1. Google App Engine のサイトにアクセスし、ログイン。

    http://appengine.google.com/

  2. "Create Application" ボタンを押す。


  3. 携帯電話のメールアドレス情報を入力。

    ここでは Softbank の IPhone 用のアドレスを入力しました。
    Vodafone となっているところが泣けます。
    Username の値はメールアドレスの @ の左側部分を入力します。


  4. 入力した携帯電話のメールアドレスに届けられたメールに記載されている Google App Engine Code の数字を確認して入力。


  5. アプリケーション情報を入力。

    Application Identifier と Application Title を入力します。
    将来的には、バグ管理システムにしたいので、Application Title は Bug Tracking System としました。


  6. アプリケーション作成に成功すると最後に以下の画面が表示されます。


  7. アプリケーションのアップロード。

    C:\Python_Test\helloworld\app.yaml にある application: の値を 5. で入力した Application Identifier の文字列に変更します。

    コマンド・プロンプトを起動し、以下を実行します。

    青字が入力。
    > cd C:\Python_Test
    > set HTTPS_PROXY=xxx.yyy.zzz.com:8080
    > appcfg.py update helloworld
    Application: application-id名 ; version: 1.
    Server: appengine.google.com.
    Scanning files on local disk.
    Initiating update.
    2011-01-19 12:59:28,328 WARNING appengine_rpc.py:405 ssl module not found.
    Without the ssl module, the identity of the remote host cannot be verified, and
    connections may NOT be secure. To fix this, please install the ssl module from
    http://pypi.python.org/pypi/ssl .
    To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl .
    Email: Google アカウントのメールアドレス

    Password for Google アカウントのメールアドレス: パスワード
    Cloning 1 static file.
    Cloning 9 application files.
    Uploading 1 files and blobs.
    Uploaded 1 files and blobs
    Precompilation starting.
    Precompilation completed.
    Deploying new version.
    Checking if new version is ready to serve.
    Will check again in 1 seconds.
    Checking if new version is ready to serve.
    Will check again in 2 seconds.
    Checking if new version is ready to serve.
    Will check again in 4 seconds.
    Checking if new version is ready to serve.
    Closing update: new version is ready to start serving.

  8. アクセス確認

    http://<application identifier>.appspot.com/ をブラウザでアクセスし、表示されることを確認します。


そろそろ、目的である android バグ報告システムの構築に取り組めそうな予感です。