CakeResque plugin not working

China☆狼群 提交于 2019-12-11 21:20:59

问题


I am trying to use CakeResque plugin in cakephp 2.4 and follow all installation instruction as per link

http://kamisama.me/2012/10/16/background-jobs-with-php-and-resque-part-6-integration-into-cakephp/

When I fire command

cake CakeResque.CakeResque start

Getting error

Error: Class CakeResqueShell could not be loaded.

Any help appreciated

Thank you


回答1:


You have to load the CakeResque plugin into your CakePHP app first.

In your app/Config/bootstrap.php, make sure that the plugin is loaded with

CakePlugin::load('CakeResque' => array('bootstrap' => true));

or with

CakePlugin::loadAll('CakeResque' => array('bootstrap' => true));

the bootstrap key is needed to load resque settings. (you can also specify a path to your own bootstrap file instead of true)

If that still does not work, maybe you're not using the "right" cake shell. You seems to use

cake CakeResque.CakeResque start

Just make sure that the cake command in your environment is the one inside you app. Test that:

cd path-to/app/Console
./cake CakeResque.CakeResque start

It it still doesn't work, you're welcome to report your issue in CakeResque issues tracker.




回答2:


This is not the only way to workout, you will have to configure Fresque to work with php-resque-Ex.



来源:https://stackoverflow.com/questions/19091311/cakeresque-plugin-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!