回答編集履歴
1
コメントに対する内容を追記
test
CHANGED
@@ -17,3 +17,43 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
3.上記で問題なければ、ロガーを使ってエラー箇所を特定する。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
追記(2020/3/6)
|
24
|
+
|
25
|
+
---
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
> しかし認証情報が書かれている***.jsonをgithubにプッシュするわけにはいかないため、どのようにheroku上でファイルを指定してあげればいいのかがわかっていない状態です。。。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
以下の認証方法を試してみてください。
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
> 2.環境変数が設定されていない場合、ADC では、サービスで実行されているアプリケーションに応じて、Compute Engine、Kubernetes Engine、Cloud Run、App Engine、または Cloud Functions によって提供されているデフォルトのサービス アカウントを使用します。
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
サーバー間での本番環境アプリケーションの認証の設定 | Google Cloud
|
42
|
+
|
43
|
+
[https://cloud.google.com/docs/authentication/production](https://cloud.google.com/docs/authentication/production)
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
※スタックオーバーフローに類似の質問がありましたので、参考にしてください。
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
google cloud platform - GOOGLE_APPLICATION_CREDENTIALS contents not file path - Stack Overflow
|
54
|
+
|
55
|
+
[https://stackoverflow.com/questions/49318273/google-application-credentials-contents-not-file-path](https://stackoverflow.com/questions/49318273/google-application-credentials-contents-not-file-path)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
もし上記で解決できないのであれば、外部ストレージから json を読み込むしかないかもしれませんね。
|