私の開発サーバーでは完全に動作しますが、私のドメインからアクセスすると、500 のサーバー エラー (サーバー ログ: エラー コード 204) をスローする Web サイト。
次に、開発サーバーがデータベースと通信していません。理由はわかりませんが、クエリを実行しないのに接続します。
私はphpを使用しています。まだプレビュー段階です。
編集: これは app.yaml ファイルのサンプルです
- url: /contactus/.*
script: contactus.php
- url: .*
script: main.php
「/」に行こうとすると、完全に機能します。しかし、/aboutus/ を試すと、GAE サイトでのみ 500 サーバー エラーがスローされます。
サンプルコード
define("pageName", "About Us");
require_once("header.php");
?>
<!--HEADER-->
<section>
</section>
<article>
</article>
<!--FOOTER-->
<?php
require_once("footer.php");
?>
サーバーログからのエラーメッセージ
2013-11-11 03:04:00.313
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
W 2013-11-11 03:04:00.313
A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used
main.php にも同じコードがありますが、機能します。