Closed TimJones closed 3 years ago
Hi, it looks like you are not running roadrunner from the project directory. If so, you should change the socket path, like you did for bin/console
:
# .rr.yaml
http:
address: "0.0.0.0:8080"
workers:
command: php/apps/rrtest/bin/console.php baldinof:roadrunner:worker
relay: unix://php/apps/rrtest/var/roadrunner.sock
If you want, you can redefine Spiral\Goridge\RelayInterface
to use a custom path for the socket:
# config/services.yaml
services:
Spiral\Goridge\RelayInterface:
class: 'Spiral\Goridge\SocketRelay'
arguments:
- '/your/custom/path'
- null
- 1 # SocketRelay::SOCK_UNIX
You can also use a TCP socket, see https://github.com/Baldinof/roadrunner-bundle#configuration
I think it would better make the path argument configurable:
$services->set(RelayInterface::class, SocketRelay::class)
->args([
'%kernel.project_dir%/var/roadrunner.sock',
null,
SocketRelay::SOCK_UNIX,
]);
Yes!
I don't have time for this right now, but I would be happy to review / merge a PR implementing a configuration that supports unix://path/to/rr.sock
and tcp://127.0.0.0:3000
, like in the workers.relay
RoadRunner config.
I have the bundle installed in a Symfony 5 based app and the command is showing up in the console as expected
but running RoadRunner fails because the socket has not been created.
My
.rr.yaml
is very basic