要在Google App Engine上托管静态(HTML)网站,应该在app.yaml文件中添加什么内容?

vis*_*dya 3 python google-app-engine app.yaml

我可以用它来上传HTML页面吗?

app.yaml 内容:

application: visualvidya
version: 1
runtime: python
api_version: 1

handlers:
- url: /(.*\.(gif|png|jpg|ico|js|css))
  static_files: \1
  upload: (.*\.(gif|png|jpg|ico|js|css))
Run Code Online (Sandbox Code Playgroud)

Dar*_*tle 6

handlers静态网站的最小部分可能如下所示:

handlers:
- url: /
  static_files: static/index.html
  upload: static/index.html

- url: /
  static_dir: static
Run Code Online (Sandbox Code Playgroud)

每个网站都不同,正如肖恩在评论中指出的那样,您需要查阅文档.