【发布时间】:2014-10-15 11:27:36
【问题描述】:
application: fooapp
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: static/index.html
upload: static/upload
- url: /lib
static_dir : static/lib
- url: /resources
static_dir : static/resources
- url: /foo.js
static_files : static/foo.js
upload: static/upload
通过上述配置,我能够使用 dev_appserver.py 在 localhost 中启动应用程序。它 localhost:8080 在静态文件夹中提供 index.html。 但是,当我部署应用程序时,fooapp.appspot.com 会导致 404。我在日志中看到以下消息。 找不到处理程序引用的静态文件:static/index.html
为什么部署后没有提供 index.html 文件?我错过了什么?
【问题讨论】: