mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Upgrade baldinof/roadrunner-bundle recipe for v3.0 (#1514)
This commit is contained in:
@@ -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
|
||||
15
baldinof/roadrunner-bundle/3.0/manifest.json
Normal file
15
baldinof/roadrunner-bundle/3.0/manifest.json
Normal 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"
|
||||
]
|
||||
}
|
||||
8
baldinof/roadrunner-bundle/3.0/post-install.txt
Normal file
8
baldinof/roadrunner-bundle/3.0/post-install.txt
Normal 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
|
||||
Reference in New Issue
Block a user