From 97e302dbd29e2bae9ae8478077594880c85cea11 Mon Sep 17 00:00:00 2001 From: Baldinof Date: Fri, 2 Apr 2021 19:52:04 +0200 Subject: [PATCH] Add recipe for baldinof/roadrunner-bundle v2.0 --- .../config/packages/baldinof_road_runner.yaml | 27 +++++++++++++++++++ baldinof/roadrunner-bundle/2.0/manifest.json | 15 +++++++++++ .../roadrunner-bundle/2.0/post-install.txt | 8 ++++++ 3 files changed, 50 insertions(+) create mode 100644 baldinof/roadrunner-bundle/2.0/config/packages/baldinof_road_runner.yaml create mode 100644 baldinof/roadrunner-bundle/2.0/manifest.json create mode 100644 baldinof/roadrunner-bundle/2.0/post-install.txt diff --git a/baldinof/roadrunner-bundle/2.0/config/packages/baldinof_road_runner.yaml b/baldinof/roadrunner-bundle/2.0/config/packages/baldinof_road_runner.yaml new file mode 100644 index 00000000..3728e09c --- /dev/null +++ b/baldinof/roadrunner-bundle/2.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 errored 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/2.0/manifest.json b/baldinof/roadrunner-bundle/2.0/manifest.json new file mode 100644 index 00000000..2bbe3132 --- /dev/null +++ b/baldinof/roadrunner-bundle/2.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/2.0/post-install.txt b/baldinof/roadrunner-bundle/2.0/post-install.txt new file mode 100644 index 00000000..6f4781be --- /dev/null +++ b/baldinof/roadrunner-bundle/2.0/post-install.txt @@ -0,0 +1,8 @@ + + What's next for RoadRunner Bundle + + + * Download RoadRunner locally: 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