Skip to content

Instantly share code, notes, and snippets.

@wa0x6e
Created September 12, 2013 16:44
Show Gist options
  • Save wa0x6e/6540575 to your computer and use it in GitHub Desktop.
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,…
<?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