我有一个静态网站,当我部署我的网站时,我正在使用 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
最佳答案
将所有静态文件放在一个目录中,比如 assets -> css、fonts、img、js。 然后指定为静态目录
- url: /assets
static_dir: assets
expiration: "1h"
http_headers:
Vary: Accept-Encoding
关于javascript - “gcloud app deploy” 静态网站跳过太多文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44778539/