google 应用引擎上的 codeigniter 应用程序

codeigniter application on google app engine

我正在尝试将 codeigniter 应用程序移动到 google 应用程序 engine.I 我正在使用 google 应用程序引擎启动器来部署我的 app.The 应用程序似乎加载到localhost,因为它向我抛出一个数据库错误。(我还没有连接到数据库)。以下是本地主机上应用程序的输出。

A Database Error Occurred.Unable to connect to your database server using the provided settings.

但是当我在实时服务器(google 应用引擎)上部署应用程序时,该应用程序抛出了一个不同的错误。

Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php

以下是我的 app.yaml for codeignitor

application: wantroltd
version: 1
runtime: php
api_version: 1
threadsafe: false

handlers:

- url: /application/*
static_dir: application

- url: /install/*
static_dir: install

- url: /install/*
script: index.php

- url: /(.+\.php)$
script: 

- url: ./*
script: index.php

我尝试将应用程序路径更改为 './application',甚至尝试将其保留为空白,但这并没有解决我的错误。 我的应用程序文件夹和 index.php 也在同一个文件夹中,部署是 successful.What 我做错了吗?

这是一个代码点火器错误,与您的路由不正确有关。我会确保您真正了解 codeignitor 在文件预期位置方面的工作方式,并且我会仔细检查您是否了解 app.yaml configuration file 的工作方式以确保这与 codeignitor 的预期一致。

The issue here seems very similar。你可以对比apache的htaccess文件的知识,看看你的错误是否相同,但是用app.yaml insead of .htaccess.