Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Releases: wa0x6e/Cake-Resque

New way to load custom configuration

25 Oct 23:33
Compare
Choose a tag to compare

A new way to load your custom configuration file was added in 4.0.0.

The classic way to load CakeResque bootstrap is:

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

If you have passed anything other than true, read carefully, as it will not works anymore.

If you have a custom bootstrap file, you have to load it with

CakePlugin::load('CakeResque' => array('bootstrap' => array(
    'bootstrap_config', 
    'path/to/your/file.php',
    'bootstrap'
));

The path is relative to CakeResque's config folder.
There is now 2 files to load, in addition to your own config file, as the config and the bootstrap part is now isolated.

Thus, your own custom config file should only contains calls to Configure::write('CakeResque.xxx')

You can also copy the content of bootstrap_config into your custom bootstrap, save an index in the array.

Changelog

  • [new] Fix #20: Ease personalized plugin configuration [@bar]
  • [fix] Fix #33: Don't use sudo when the current user is already the target user
  • [fix] Default process owner is the one running the webserver, and not the one owning the file
  • [fix] Fix #25: Workers now works with exotic directory structure

3.3.7

07 Jul 20:50
Compare
Choose a tag to compare
  • Add reset to reset CakeResque internal state
  • Remove --debug option, in favor of --verbose
  • Some text formatting and other minor fixes