Google 的 app.yaml 文档提供了示例,但缺少非常简单的基本用法示例: https ://cloud.google.com/appengine/docs/php/config/appconfig#PHP_app_yaml_Static_file_pattern_handlers
假设我有 app.yaml 与 html 文件(例如 cat.html)在同一目录中,它基本上播放来自同一目录中的 wav 文件(例如 catsound.wav)的音频,基本 app.yaml 文件应该是什么? html文件说的是:
<!DOCTYPE html>
<html>
<body>
<audio controls>
<source src="catsound.wav" type="audio/wav">
Your browser does not support the audio element.
</audio>
</body>
</html>
用户只会去 .appspot.com。没有子网址。为什么以下 app.yaml 不能同时上传 cat.html 和 catsound.wav?:
application: kat
version: 1
runtime: php
api_version: 1
handlers:
- url: /.*
static_files: cat.*
upload: cat.*
对于这个如此基本的示例,正确的 app.yaml 应该是什么?