mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Add RXQUEUE_CRON constant to distinguish when cron is running
This commit is contained in:
parent
0fd3b42885
commit
f6a458f648
1 changed files with 3 additions and 1 deletions
|
|
@ -6,14 +6,16 @@
|
|||
* Unlike other scripts provided with Rhymix, it can be called
|
||||
* both on the command line and over the network.
|
||||
*/
|
||||
define('RXQUEUE_CRON', true);
|
||||
|
||||
// If called on the CLI, run additional checks.
|
||||
if (PHP_SAPI === 'cli')
|
||||
{
|
||||
require_once __DIR__ . '/common.php';
|
||||
}
|
||||
else
|
||||
{
|
||||
// If called over the network, bypass CLI checks.
|
||||
// If called over the network, load Rhymix directly.
|
||||
chdir(dirname(dirname(__DIR__)));
|
||||
require_once dirname(__DIR__) . '/autoload.php';
|
||||
Context::init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue