From b0b7f7cebaf08455be5bf0976d833c91c75e36b4 Mon Sep 17 00:00:00 2001 From: Florent Baldino Date: Thu, 18 May 2023 10:48:53 +0200 Subject: [PATCH] Upgrade baldinof/roadrunner-bundle recipe for v3.0 (#1514) --- .../config/packages/baldinof_road_runner.yaml | 27 +++++++++++++++++++ baldinof/roadrunner-bundle/3.0/manifest.json | 15 +++++++++++ .../roadrunner-bundle/3.0/post-install.txt | 8 ++++++ 3 files changed, 50 insertions(+) create mode 100644 baldinof/roadrunner-bundle/3.0/config/packages/baldinof_road_runner.yaml create mode 100644 baldinof/roadrunner-bundle/3.0/manifest.json create mode 100644 baldinof/roadrunner-bundle/3.0/post-install.txt diff --git a/baldinof/roadrunner-bundle/3.0/config/packages/baldinof_road_runner.yaml b/baldinof/roadrunner-bundle/3.0/config/packages/baldinof_road_runner.yaml new file mode 100644 index 00000000..613ec38f --- /dev/null +++ b/baldinof/roadrunner-bundle/3.0/config/packages/baldinof_road_runner.yaml @@ -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 diff --git a/baldinof/roadrunner-bundle/3.0/manifest.json b/baldinof/roadrunner-bundle/3.0/manifest.json new file mode 100644 index 00000000..2bbe3132 --- /dev/null +++ b/baldinof/roadrunner-bundle/3.0/manifest.json @@ -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" + ] +} diff --git a/baldinof/roadrunner-bundle/3.0/post-install.txt b/baldinof/roadrunner-bundle/3.0/post-install.txt new file mode 100644 index 00000000..13af1354 --- /dev/null +++ b/baldinof/roadrunner-bundle/3.0/post-install.txt @@ -0,0 +1,8 @@ + // Note: Installing the spiral/roadrunner-cli package is not mandatory + // There is alternatives to install the RoadRunner binary: + // See https://roadrunner.dev/docs/intro-install/2023.x + + * Download RoadRunner locally: composer require spiral/roadrunner-cli && vendor/bin/rr get --location bin/ + * Run your application: bin/rr serve -c .rr.dev.yaml --debug + * For production, use: bin/rr serve + * Visit http://localhost:8080