Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 我们可以在谷歌应用程序引擎上使用Restler吗_Php_Android_Google App Engine_Restler - Fatal编程技术网

Php 我们可以在谷歌应用程序引擎上使用Restler吗

Php 我们可以在谷歌应用程序引擎上使用Restler吗,php,android,google-app-engine,restler,Php,Android,Google App Engine,Restler,我想在Google Cloud(Google App Engine&Restler RESTful API Server)上创建一个带有子域的网站: http://api.restlerongooglecloud.com用于混合应用程序(Android、iOS、Windows)joomla.restlerongooglecloud.com用于博客,restlerongooglecloud.com用于主页 我想知道我是否可以创建/准备网站,使用GoogleAppEngine SDK使用Restle

我想在Google Cloud(Google App Engine&Restler RESTful API Server)上创建一个带有子域的网站:

http://api.restlerongooglecloud.com
用于混合应用程序(Android、iOS、Windows)
joomla.restlerongooglecloud.com
用于博客,
restlerongooglecloud.com
用于主页

我想知道我是否可以创建/准备网站,使用GoogleAppEngine SDK使用Restler,然后作为指向
http://api.restlerongooglecloud.com

Restler使用Composer来管理其依赖项,因此需要将
Composer.phar
保存在项目文件夹中,或者理想情况下保存在
usr/local/bin

我的问题是,在本地机器上按照Restler文档进行了所有设置并测试工作正常后,如果我将项目上传到谷歌云应用引擎,它会工作吗

参考资料:

在Google App Engine Launcher(平台Windows8)上,我指向url时出现以下错误:

hxxp: // localhost:10085/api/public/examples/_001_helloworld/say/hello

{ "error": { "code": 404, "message": "Not Found" }, "debug": { "source": "Routes.php:359 at route stage", "stages": { "success": [ "get" ], "failure": [ "route", "negotiate", "message" ] } } }
如何解决这个问题

app.yaml如下所示:

application: restlerongae
version: 1

runtime: php

api_version: 1



handlers:
## api images
- url: /api/(.*\.(ico$|jpg$|png$|gif$))
  static_files: api/\1
  upload: api/(.*\.(ico$|jpg$|png$|gif$))
  application_readable: true

## api html
- url: /api/(.*\.(htm$|html$|css$|js$))
  static_files: api/\1
  upload: api/(.*\.(htm$|html$|css$|js$))
  application_readable: true

## api test1
- url: /api/(.*)
  script: api/public/examples/_001_helloworld/index.php

Restler 3 RC5提出了一些请求,以使其与google app engine兼容,这些请求被接受,然后得到改进


所以,是的,Restler和AppEngine应该没问题。如果您遇到任何问题,请随时联系我们

@KrupaPatel,你在编辑帖子时应该更加小心。仅仅添加代码格式框并不能使文章变得更好。编辑时请慢慢来,不要做草率的工作。为什么不上传它并找出答案呢?我已经尝试上传Restler 3 RC5,但无法正确配置
app.yml
。我可以请求在这里发布
app.yml
文件,以便Restler在GAE上工作。我无法正确配置
app.yml
以在google app engine sdk上工作