Skip to content

Commit 6165de4

Browse files
author
Chris Boulton
committed
Merge branch 'master' of github.com:chrisboulton/php-resque
2 parents ebe7665 + 2c5e088 commit 6165de4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

resque.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
die("Set QUEUE env var containing the list of queues to work.\n");
55
}
66

7-
$APP_INCLUDE = getenv('APP_INCLUDE');
8-
if($APP_INCLUDE) {
9-
if(!file_exists($APP_INCLUDE)) {
10-
die('APP_INCLUDE ('.$APP_INCLUDE.") does not exist.\n");
11-
}
12-
13-
require_once $APP_INCLUDE;
14-
}
15-
167
require_once 'lib/Resque.php';
178
require_once 'lib/Resque/Worker.php';
189

@@ -32,6 +23,15 @@
3223
$logLevel = Resque_Worker::LOG_VERBOSE;
3324
}
3425

26+
$APP_INCLUDE = getenv('APP_INCLUDE');
27+
if($APP_INCLUDE) {
28+
if(!file_exists($APP_INCLUDE)) {
29+
die('APP_INCLUDE ('.$APP_INCLUDE.") does not exist.\n");
30+
}
31+
32+
require_once $APP_INCLUDE;
33+
}
34+
3535
$interval = 5;
3636
$INTERVAL = getenv('INTERVAL');
3737
if(!empty($INTERVAL)) {

0 commit comments

Comments
 (0)