How to download application from Google Cloud Platform Java Flexible Environment

被刻印的时光 ゝ 提交于 2019-12-02 12:13:01

问题


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...

What will be the solution to achieve the same result in Flexible environment?


回答1:


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.

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.

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.



来源:https://stackoverflow.com/questions/49444048/how-to-download-application-from-google-cloud-platform-java-flexible-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!