Skip to content

Commit

Permalink
runs only single worker, renames command
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmajkl committed Aug 19, 2022
1 parent c5610a6 commit 30112f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Lemon/Squeezer/Squeezer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function init(Application $application): static
$squezer = new self($application);
$application->get('terminal')
->command(
'start {host?} {port?}',
'squeeze {host?} {port?}',
Closure::fromCallable([$squezer, 'command']),
'Executes app using Lemon Squeezer'
);
Expand All @@ -60,7 +60,8 @@ public function boot(string $host, string $port)

$worker->onMessage = [$this, 'handleIncomming'];

$worker->runAll();
$worker->listen();
$worker->run();
}

public function handleIncomming(ConnectionInterface $connection, Request $request)
Expand Down

0 comments on commit 30112f0

Please sign in to comment.