Home > 技 术 > 另类方法实现GAE主机读取html文件

另类方法实现GAE主机读取html文件

2009年4月30日 字体大小 发表评论 阅读评论

首先新建app.yaml文件,其中的handlers写上:

- url: / photos (photos为你指向的文件夹)
  static_files: photos/index.html
  upload: photos/index.html

- url: /photos/Liyang.jpg
  static_files: photos/Liyang.jpg
  upload: photos/Liyang.jpg

然后在本地photos文件夹下新建index.html文件和放置Liyang.jpg图片。

注意这几个文件的结构:

upload ——
               app.yaml
               photos ——
                               index.html
                               Liyang.jpg

然后把upload文件使用appcfg.py  update到你的GAE。

刷新一下你的页面看一下效果吧。

演示:http://weblog.crazyenglish.info/photos

分类: 技 术 标签: , , , 浏览719 次
声明: 本站内容遵循 署名-非商业性使用-禁止演绎 2.5 共享协议. 原创文章转载 请注明转自 守望的麦子

相关文章 随机文章 本月热评 热门标签

    1. 2009年4月30日17:13 | #1

      另一个演示网站:
      http://open-soft.appspot.com
      更新域名:
      http://www.open-soft.net.ru

      [回复]

      CHINA CHINA Internet Explorer Internet Explorer 6.0 Windows Windows XP
    1. 本文目前尚无任何 trackbacks 和 pingbacks.