0

GAE の PHP バージョンの運用サーバーのログから次のエラーが表示されます。

Static file referenced by handler not found: stylesheets/IT%20Issue/style.css
Static file referenced by handler not found: scripts/IT%20Issue/script.js
Static file referenced by handler not found: scripts/IT%20Issue/jquery.min.js

しかし、これらのエラーを使用してローカルで実行すると、これらのエラーは発生しません

D:\Python\python.exe D:/google_appengine_1.8.2/google_appengine/dev_appserver.py --php_executable_path=D:\PHP\php-cgi.exe .

ここに私の app.yaml ファイルの一部があります

handlers:
- url: /stylesheets/
  static_dir: stylesheets/

- url: /images/
  static_dir: images/

- url: /scripts/
  static_dir: scripts/

これらのファイルを呼び出す php ファイルの一部を以下に示します。

<?php
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>Secured page</title>
    <link rel="stylesheet" type="text/css" href="/stylesheets/IT Issue/style.css" />
    <script type="text/javascript" src="/scripts/IT Issue/jquery.min.js"></script>
    <script type="text/javascript" src="/scripts/IT Issue/script.js"></script>

</head>
<body>

私はここでいくつかの検索を行いました.Capsはローカルでの実行を許可するかもしれませんが、本番環境では実行できないと誰かが言いました. これが私の実際のファイルの場所です。大文字と小文字を区別する問題があるとは思いません。

"D:\Google_PHP\stylesheets\IT Issue\style.css"
"D:\Google_PHP\scripts\IT Issue\script.js"
"D:\Google_PHP\scripts\IT Issue\jquery.min.js"

私は何も悪いことをしたとは思いません。しかし、私はこのことを学び続けることができるように、セカンドオピニオンを持ちたいか、修正したいと思っています.

4

0 に答える 0