我的所有静态文件都与我的目录相同app.yaml
现在,我必须在我的app.yaml
application: xxx
version: 1
runtime: python
api_version: 1
handlers:
- url: /
static_files: index.html
upload: index.html
- url: /style.css
static_files: style.css
upload: style.css
- url: /android.png
static_files: android.png
upload: android.png
- url: /logo.png
static_files: logo.png
upload: logo.png
- url: /helloworld.py
script: helloworld.py
有没有更简单的方法来指定我的所有静态文件?(只要它们与 相同的目录级别app.yaml
)
我试试
- url: /
static_files: index.html
static_dir: \.
upload: index.html
它行不通。
Fatal error when loading application configuration:
Unexpected attribute "static_dir" for mapping type static_files.
in "C:\Projects\xxx-website\app.yaml", line 12, column 1