Skip to content

Commit

Permalink
Allow gearman env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
gadelkareem authored Jan 13, 2017
1 parent 31c40f8 commit 109ac5f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ protected function setUp()
$this->tasks = [];

$this->gearman = new \GearmanClient();
$this->gearman->addServer();
$this->gearman->addServer(
isset($_SERVER['GEARMAN_HOST']) ? $_SERVER['GEARMAN_HOST'] : null,
isset($_SERVER['GEARMAN_PORT']) ? $_SERVER['GEARMAN_PORT'] : 4730
);
$this->gearman->setCompleteCallback([$this, "gearmanTaskCompleted"]);

$article = new CmsArticle();
Expand Down

0 comments on commit 109ac5f

Please sign in to comment.