File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Google App Engine Python アプリケーションの骨組。
6
6
準備
7
7
----
8
8
9
- Google Cloud SDK をインストール:
9
+ 1 ) Google Cloud SDK をインストール:
10
10
11
11
```
12
12
curl https://sdk.cloud.google.com | bash
@@ -16,7 +16,13 @@ curl https://sdk.cloud.google.com | bash
16
16
17
17
インストール後、SDK の PATH が通った状態にしておく。
18
18
19
- PyPI から必要な Python パッケージを ` ./lib ` ディレクトリにインストール:
19
+ 2 ) App Engine SDK for Python を追加インストール:
20
+
21
+ ```
22
+ gcloud components install app-engine-python
23
+ ```
24
+
25
+ 3 ) PyPI から必要な Python パッケージを ` ./lib ` ディレクトリにインストール:
20
26
21
27
```
22
28
pip install -t ./lib -r ./requirements.txt
@@ -26,23 +32,26 @@ pip install -t ./lib -r ./requirements.txt
26
32
開発
27
33
----
28
34
29
- テストサーバーの起動 :
35
+ 1 ) 開発サーバーの起動 :
30
36
31
37
```
32
38
dev_appserver.py ./
33
39
```
34
40
35
41
次の URL から確認:
36
42
37
- - http://localhost:8080/ (app)
38
- - http://localhost:8000/ (dashboard)
43
+ - < http://localhost:8080/ > (app)
44
+ - < http://localhost:8000/ > (dashboard)
39
45
40
- テストランナーの実行 :
46
+ 2 ) 単体テストの実行 :
41
47
42
48
```
43
49
GAE_SDK_PATH=/path/to/google-cloud-sdk/platform/google_appengine python ./test/runner.py
44
50
```
45
51
52
+ - App Engine SDK for Python の PATH が ` /path/to/google-cloud-sdk/platform/google_appengine ` の場合
53
+ - 出力は [ TAP] ( https://testanything.org/ )
54
+
46
55
47
56
メンテナ
48
57
--------
You can’t perform that action at this time.
0 commit comments