GAE应用直接调用静态文件index.html的方法
GAE默认是不能直接调用index.html此类的静态文件,这就需要我们对配置文件app.yaml
做下小改动了,其实方法很简单,只需按照下面的方法改动下app.yaml配置文件即可。
application: meirongb
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
static_files: index.html
upload: index.html
演示请看:http://meirongb.appspot.com/
- 版权申明:此文如未标注转载均为本站原创,自由转载请表明出处《蓝叶》。
- 本文网址:https://lanye.org/web/25.html
- 上篇文章:免费无限的音乐MP3外链网盘-酷狗音乐硬盘
- 下篇文章:WEB服务器IIS5.1便携安装包-XPIIS专用