Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with Fresque #5

Closed
kievechua opened this issue Jul 30, 2013 · 2 comments
Closed

Using with Fresque #5

kievechua opened this issue Jul 30, 2013 · 2 comments

Comments

@kievechua
Copy link

I'm trying to use with Fresque, need some help to set it up.

; Absolute or relative path to php-resque libraries
; A relative path will be relative to the location
; of the fresque cli.
;
; Fresque is shipped with a copy of the php-resque
; library, but it you have already included one in your
; application, and wish to use it, put in its path
lib     = /var/www/myrepo/protected/components/yii-resque

; Absolute path to the entry point of you application
; In order to execute your jobs, php-resque have to know
; about your jobs classes.
; Instead of passing each job classes to php-resque
; one by one, use an autoloader that will autoload
; your jobs classes
include = /var/www/myrepo/protected/components/yii-resque/bin/resque

Is this the correct way to do it?

@rolies106
Copy link
Owner

I'm not quite sure with this because I never use Fresque before but I think The correct path for php-resque is :

/var/www/myrepo/protected/components/yii-resque/lib

and for the autoload, is that the autoloader for worker? If I see configuration at https://github.com/kamisama/Fresque/blob/master/fresque.ini I think this is autoloader for worker so maybe you could try :

/var/www/myrepo/protected/components/yii-resque/RResqueAutoloader.php

Let see if that works

@kievechua
Copy link
Author

Thanks for the prompt response :)
The autoloader seem to be right path.

But the lib need to point to lib = /var/www/myrepo/protected/components/yii-resque

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants