Google App Engine中的index.html的yaml配置
我正在搭建一个网站,但我没有index.py文件,怎么才能确保当我在浏览器里输入 http://localhost:8080/ 时能显示index.html呢?
我在yaml文件里有一些设置
- url: /
static_files: static/HTML
upload: static/HTML/index.html
但是这似乎不起作用。
1 个回答
11
你的 static_files
指令需要包含文件的完整路径:
static_files: static/HTML/index.html