我可以用它来上传 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))
我可以用它来上传 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))
静态站点的最小handlers
部分可能如下所示:
handlers:
- url: /
static_files: static/index.html
upload: static/index.html
- url: /
static_dir: static
每个站点都不同,因此正如 Sean 在评论中指出的那样,您需要查阅文档。