Created
September 12, 2013 16:44
-
-
Save wa0x6e/6540575 to your computer and use it in GitHub Desktop.
Custom bootstrap file example. You load that bootstrap file when loading the plugin into your Cake app (`Cake::load('CakeResque' => array('bootstrap') => 'custom_bootstrap.php')`), you require the default bootstrap to keep the default settings, then you redefine only your custom variables. You can also put that file in the git local ignore list,…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . DS . 'bootstrap.php'; | |
Configure::write('CakeResque.Worker.verbose', true); | |
Configure::write('CakeResque.Queues', array( | |
array( | |
'queue' => 'default', // Use default values from above for missing interval and count indexes | |
'workers' => 2 | |
//'user' => 'www-data' // If PHP is running as a different user on you webserver | |
), | |
array( | |
'queue' => 'achievement', | |
'interval' => 10, | |
'workers' => 2 | |
) | |
)); | |
Configure::write('CakeResque.Log', array( | |
'handler' => 'Cube', | |
'target' => 'udp://127.0.0.1:1180' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment