wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

Includes fails with custom app name #27

Closed irongomme closed 11 years ago

irongomme commented 11 years ago

Hi,

I'm using several projects with the same cake lib base. So each of them are not called 'app', but the resque job try to include '/app/Config/database.php' and fails because the file is not stored here ....

any solution ?

Im working with the last version (3.3.8)

wa0x6e commented 11 years ago

Did you try to manually include the Database file on top of your resque job file ?

wa0x6e commented 11 years ago

Any update on this issue ?

irongomme commented 11 years ago

Sorry, i was very busy ...

I've big problems with models autoload, my cake common dir is under :

/var/www/lib/cakephp

so cakeresque is looking for classes under /var/www/lib/cakephp/app/Models/ but in my app, models are into /var/www/mydomain.tld/www/myapp/Models/

in /var/www/mydomain.tld/www/myapp/ , i've defined symbolic link to access cake libs.

So how to defines paths to make it work properly ?

Ps: Sorry, this is not my initial problem, but for me this is the same issue ...

wa0x6e commented 11 years ago

I'm currently on the move so I can't look at your issue carefully, but I think there's already a similar issue. Check the closed issues, there should be a solution, but I didn't implement it, as it was an edge case.

On Monday, September 23, 2013, Jérôme DENIS wrote:

Sorry, i was very busy ...

I've big problems with models autoload, my cake common dir is under :

/var/www/lib/cakephp

so cakeresque is looking for classes under /var/www/lib/cakephp/app/Models/ but in my app, models are into /var/www/mydomain.tld/www/myapp/Models/

in /var/www/mydomain.tld/www/myapp/ , i've defined symbolic link to access cake libs.

So how to defines paths to make it work properly ?

Ps: Sorry, this is not my initial problem, but for me this is the same issue ...

— Reply to this email directly or view it on GitHubhttps://github.com/kamisama/Cake-Resque/issues/27#issuecomment-24918433 .