Upgrade baldinof/roadrunner-bundle recipe for v3.0 (#1514)

This commit is contained in:
Florent Baldino
2023-05-18 10:48:53 +02:00
committed by GitHub
parent 4b1ab2fdd1
commit b0b7f7ceba
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
baldinof_road_runner:
# When the kernel should be rebooted.
# See https://github.com/baldinof/roadrunner-bundle#kernel-reboots
kernel_reboot:
# if you want to use a fresh container on each request, use the `always` strategy
strategy: on_exception
# Exceptions you KNOW that do not put your app in an unrecoverable state
allowed_exceptions:
- Symfony\Component\HttpKernel\Exception\HttpExceptionInterface
- Symfony\Component\Serializer\Exception\ExceptionInterface
- Symfony\Contracts\HttpClient\Exception\ExceptionInterface
# Allow to send prometheus metrics to the main RoadRunner process,
# via a `Spiral\RoadRunner\MetricsInterface` service.
# See https://github.com/baldinof/roadrunner-bundle#metrics
metrics:
enabled: false
# collect:
# my_counter:
# type: counter
# help: Some help
# You can use middlewares to manipulate Symfony requests & responses.
# See https://github.com/baldinof/roadrunner-bundle#middlewares
# middlewares:
# - App\Middleware\YourMiddleware

View File

@@ -0,0 +1,15 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"copy-from-package": {
".rr.yaml": ".rr.yaml",
".rr.dev.yaml": ".rr.dev.yaml"
},
"bundles": {
"Baldinof\\RoadRunnerBundle\\BaldinofRoadRunnerBundle": ["all"]
},
"gitignore": [
"/bin/rr"
]
}

View File

@@ -0,0 +1,8 @@
// Note: Installing the <comment>spiral/roadrunner-cli</> package is not mandatory
// There is alternatives to install the RoadRunner binary:
// See <fg=blue>https://roadrunner.dev/docs/intro-install/2023.x</>
* <fg=blue>Download</> RoadRunner locally: <comment>composer require spiral/roadrunner-cli && vendor/bin/rr get --location bin/</>
* <fg=blue>Run</> your application: <comment>bin/rr serve -c .rr.dev.yaml --debug</>
* <fg=blue>For production, use:</> <comment>bin/rr serve</>
* Visit http://localhost:8080