我有一个静态网站,当我部署我的网站时,我正在使用GAE,有些图片没有上传。 我该如何解决这个问题
控制台消息:
Some files were skipped. Pass `--verbosity=info` to see which ones.
You may also view the gcloud log file, found at
[C:\Users\Maher\AppData\Roaming\gcloud\logs\2017.06.22\13.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
答案 0 :(得分:2)
将所有静态文件放在一个dir说资产中 - > css,fonts,img,js。 然后将其指定为静态目录
- url: /assets
static_dir: assets
expiration: "1h"
http_headers:
Vary: Accept-Encoding