查看已部署文件的App Engine标准吗? [英] Viewing deployed files app engine standard?

查看:60
本文介绍了查看已部署文件的App Engine标准吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我转到Google Cloud Platform控制台/App Engine/服务,然后在诊断"列下单击工具",然后单击源",则显示一个屏幕:已部署的文件".

If I go to Google Cloud Platform console / App Engine / Services, and under the Diagnose column click "Tools", then "Source", I get to a screen that says: "Deployed Files".

在目录结构下,在我看来,我只能看到未部署的文件.例如,我在那里看到我的app.yaml文件.

Under the directory structure, it seems to me I only see non-deployed files. For example I see my app.yaml file there.

如何查看实际部署的文件?

How can I view the files that were actually deployed?

似乎在过去某个时候可以运行"appcfg.py download_app"来下载已部署的文件,但这似乎不再起作用,或者至少我不知道如何指定应用程序ID"",因为现在一切都取决于服务和项目ID.

Seems like sometime in the past one could run "appcfg.py download_app" to download the deployed files, but that doesn't seem to work anymore, or at least I can't figure out how to specify an "Application ID" since everything now is in terms of services and project ids.

推荐答案

App Engine与应用程序文件分开存储和提供静态文件.默认情况下,静态文件在应用程序的文件系统中不可用.可以通过将application_可读选项设置为true来更改.

App Engine stores and serves static files separately from application files. Static files are not available in the application's file system by default. This can be changed by setting the application_readable option to true.

在app.yaml中设置 application_可读并重新部署您的应用,静态文件应显示在Debug

Set application_readable in your app.yaml and redeploy your app, static files should appear in Debug

- url: /static
  static_dir: static
  application_readable: true

这篇关于查看已部署文件的App Engine标准吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆