0
我創建了一個PHP web應用程序,該應用程序在localhost中運行良好,但是在通過GAE開發服務器運行時,它的格式不正確。谷歌應用程序引擎中的Web應用程序壞格式
你知道爲什麼嗎?
正確的格式:
的app.yaml:
runtime: php55
api_version: 1
handlers:
- url: /.*
script: index.php
我創建了一個PHP web應用程序,該應用程序在localhost中運行良好,但是在通過GAE開發服務器運行時,它的格式不正確。谷歌應用程序引擎中的Web應用程序壞格式
你知道爲什麼嗎?
正確的格式:
的app.yaml:
runtime: php55
api_version: 1
handlers:
- url: /.*
script: index.php
你必須爲你的靜態文件指定的處理器,這樣他們使用已部署的應用上傳:
runtime: php55
api_version: 1
handlers:
- url: /images
static_dir: images
- url: /css
static_dir: css
# Catch all handler for any other requests:
- url: /.*
script: index.php
Read more about using the static_dir
or static_files
options。
css失蹤?你可以檢查瀏覽器控制檯是否有錯誤? – Iarwa1n
是的!有關於CSS和JS的一些錯誤,我會嘗試修復它們。謝謝! –