2017-09-23 14 views
0

localhostで正常に動作するPHP Webアプリケーションを作成しましたが、GAE開発サーバーで実行するとフォーマットが正しくありません。GoogleアプリケーションエンジンでWebアプリケーションの形式が正しくありません

理由はありますか?

正しい形式:

Correct format 不正な形式:

enter image description here

app.yamlを:あなたはあなたの静的ファイルのハンドラを指定する必要が

runtime: php55 
api_version: 1 

handlers: 
    - url: /.* 
     script: index.php 
+1

cssがありませんか?ブラウザのコンソールでエラーを確認できますか? – Iarwa1n

+0

はい! CSSとJSに関するいくつかのエラーがありますが、私はそれらを修正しようとします。ありがとう! –

答えて

1

ているので、彼らデプロイされたアプリでアップロードされます:

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

関連する問題