A Heroku buildpack for roadrunner.
heroku buildpacks:add https://github.com/M-Porter/buildpack-roadrunner-php
You can specify which roadrunner version to use by setting the RR_VERSION
environment variable.
web: ./rr -o http.address=0.0.0.0:${PORT} serve
The following config assumes you have a worker file at your project root named worker.php
.
# configuration version: https://roadrunner.dev/docs/beep-beep-config/2.x/en
version: '2.7'
rpc:
listen: tcp://127.0.0.1:6001
server:
command: "php worker.php"
logs:
mode: production
level: info
output: stdout
encoding: json