本文介绍了如何从Google Cloud Platform Java Flexible Environment下载应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用此链接从GCP下载应用程序:。但它看起来像只适用于标准环境的COS代码执行没有错误,但没有实际下载后。输出为:

I am trying to download Application from GCP using this link: Downloading Your Application. But it looks like this works only for the Standard environment cos code executes without errors but nothing is actually downloaded after. Output is:

AM Host: appengine.google.com
AM Fetching file list...
AM Fetching files...

灵活性达到相同结果的解决方案是什么?环境?

推荐答案

当您部署App Engine Flexible应用程序时,源代码将上传到您的云存储项目放在名为staging..appspot.com的存储桶中。您可以在此存储分区中导航,并将特定版本的源代码下载为.tar文件。

When you deploy an App Engine Flexible application, the source code is uploaded to Cloud Storage on your project in a bucket named staging..appspot.com. You can navigate in this bucket and download the source code for a specific version as a .tar file.

或者,您可以找到源代码的确切云存储URL通过转到开发控制台>容器注册表>构建历史记录并选择适合您的版本的版本。您可以在Build Information中找到您的源代码链接。

Alternatively, you can find the exact Cloud Storage URL for your source code by going to Dev Console > Container Registry > Build History and select the build for your version. You'll find the link to your source code under Build Information.

然而,有一点需要注意的是,staging ...存储桶默认情况下会创建一个Lifecycle规则即自动删除超过15天的文件。如果需要,可以删除此规则,以便所有版本的源代码无限期地保留。

One thing to note however is that the staging... bucket is created by default with a Lifecycle rule that deletes files older than 15 days automatically. You can delete this rule if you want so that all versions' source code is kept indefinitely.

这篇关于如何从Google Cloud Platform Java Flexible Environment下载应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 08:57