我有一个静态网站,当我部署网站时,我正在与GAE一起工作,一些图片没有上传。我该如何解决此问题
控制台消息:
Some files were skipped. Pass `--verbosity=info` to see which ones.
You may also view the gcloud log file, found at
[C:UsersMaherAppDataRoaminggcloudlogs2017.06.2213.28.54.036000.log].
这是我的app.yaml
runtime: php55
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/1
upload: www/(.*)
文件夹树:
>Website
>www
>css
>fonts
>img
>photos
pic_1.jpg
pic_2.jpg
...
>js
blog_post.html
photos.html
index.html
app.yaml
将所有静态文件放在一个dir Say Assets-> CSS,字体,IMG,JS中。然后将其指定为静态目录
- url: /assets
static_dir: assets
expiration: "1h"
http_headers:
Vary: Accept-Encoding