1
我有一個app.yaml文件看起來像這樣:圖像在本地工作,但在Google App Engine上部署後無法運行?
application: segmentize
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /css
static_dir: css
- url: /img(.*\.(gif|png|jpg))
static_files: img/\1
upload: img(.*\.(gif|png|jpg))
- url:/
script: index.app
skip_files:
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?dev
- ^(.*/)?old_ver
- ^(.*/)?resources
的所有圖像顯示效果細膩本地。但是,一旦部署,它們表現爲破碎。在HTML
圖像設置如下:
<img src="/img/welcomeimg.png">
是當我部署的圖像只是沒有上傳?這是什麼造成的?該css文件夾似乎部署沒有問題。
app引擎是大小寫敏感的文件系統,檢查這一點。 –
我猜你沒有使用'skip_files',但是如果你是...你能不能包括這個呢? – Lipis
@ShayErlichmen我檢查了所有的文件名。一切都是小寫。 –