簡體   English   中英

無法部署GAE(Google App Engine)應用程序(Java SDK)

[英]Couldn't deploy GAE (Google App Engine) application (Java SDK)

我正在嘗試快速入門,但無法部署該應用程序。 我制作了Google Cloud Platform帳戶,Cloud Platform項目和App Engine應用程序。 我使用了mvn appengine:update命令。

結果是

[INFO] Running -A masas-first-project -V masas-first-project1 --oauth2 update /home/masa/Code/googleAppEngine/java-docs-samples/appengine/helloworld/target/appengine-helloworld-1.0-SNAPSHOT
The following URL can be used to authenticate:
  https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id=550516889912.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/appengine.admin%20https://www.googleapis.com/auth/cloud-platform
Attempting to open it in your browser now.

就像我不知道在哪里粘貼代碼

最后可以部署...

通過使用命令“ gcloud app create”。 也許我做了gcp項目,但還沒有gcloud app。

首先,我采用日語快速入門,但接下來嘗試了英語。 cloud.google.com/appengine/docs/standard/java/quickstart

和我有同樣的錯誤,但我讀了Maven的錯誤消息

mvn appengine:deplpy 
ERROR: (gcloud.app.deploy) The current Google Cloud project [testproject-218805] does not contain an App Engine application. Use gcloud app create to initialize an App Engine application within the project.

這是另一個很好的資源... github.com/GoogleCloudPlatform/getting-started-java/issues/371感謝大聲笑。

順便說一句,我在博客上寫了這個。 但是用日語..我也有英語內容。 訪問https://lavilleeternelle.wordpress.com/2018/10/08/gae-google-app-engine%e3%81%a7%e9%81%8a%e3%81%b6/

您必須將該代碼粘貼到終端中才能進行身份驗證。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM