Php Cron作业未在google app engine+;拉维尔4号

Php Cron作业未在google app engine+;拉维尔4号,php,google-app-engine,laravel,laravel-4,crontab,Php,Google App Engine,Laravel,Laravel 4,Crontab,我正在将我在Laravel4中开发的应用程序转移到Google应用程序引擎。我遵循了本教程中提到的步骤 一切都很顺利。为了在Google App engine中设置cron jb,我创建了一个cron.yaml文件。但问题是它没有被执行。我一直在寻找解决办法,但在这方面什么也没找到。下面是我的cron.yaml文件 cron: - description: Todo reminder url: /gae_cron/todo_reminder schedule: every 1 m

我正在将我在Laravel4中开发的应用程序转移到Google应用程序引擎。我遵循了本教程中提到的步骤

一切都很顺利。为了在Google App engine中设置cron jb,我创建了一个cron.yaml文件。但问题是它没有被执行。我一直在寻找解决办法,但在这方面什么也没找到。下面是我的cron.yaml文件

cron:
 - description: Todo reminder
   url: /gae_cron/todo_reminder
   schedule: every 1 minutes from 00:00 to 23:59
application: test
version: beta-1-11
runtime: php55
api_version: 1

handlers:

    - url: /favicon\.ico
      static_files: public/favicon.ico
      upload: public/favicon\.ico

    - url: /packages
      static_dir: public/packages

    - url: /assets
      static_dir: public/assets

    - url: /views
      static_dir: public/views

    - url: /.*
      script: public/index.php
我的app.yaml文件

cron:
 - description: Todo reminder
   url: /gae_cron/todo_reminder
   schedule: every 1 minutes from 00:00 to 23:59
application: test
version: beta-1-11
runtime: php55
api_version: 1

handlers:

    - url: /favicon\.ico
      static_files: public/favicon.ico
      upload: public/favicon\.ico

    - url: /packages
      static_dir: public/packages

    - url: /assets
      static_dir: public/assets

    - url: /views
      static_dir: public/views

    - url: /.*
      script: public/index.php
这是我从cron.yaml调用的路径

 Route::get('gae_cron/todo_reminder', function() {
   Log::info('todo reminder route');
 });
但是我在日志里什么也看不到。但是,当我通过直接在浏览器中粘贴url来执行它时,它会显示在日志中


有没有人能让cron job和Laravel一起在GAE工作

根据谷歌应用程序引擎文档

You can use appcfg.py to upload cron jobs and view information about the defined cron jobs. When you upload your application to App Engine using appcfg.py update, the Cron Service is updated with the contents of cron.yaml. You can update just the cron configuration without uploading the rest of the application using appcfg.py update_cron
单独上载cron条目的步骤

appcfg.py -A <project-id> update_cron .

在那里,您将找到cron.yaml文件中提到的所有cron条目

您是否在开发人员控制台中看到cron作业(
Compute
->
appengine
->
Task queues
在左侧菜单上,然后是
cron Jobs
选项卡)?@DanCornilescu没有显示任何内容查看此答案(适用于PHP)帮助:@DanCornilescu已尝试,但出现此错误appcfg.py:error:应在“update_cron”之后出现参数。@DanCornilescu感谢您为我指明了此方向,最终成功了。GAE doc说,当我们部署应用程序时,它会上载cron.yaml,但在我的例子中,当我使用appcfg.py(一个更新cron)单独上载它时,它会起作用。