From 3ce2eee6097e6e06b8f1b40e80c70d78bbc40059 Mon Sep 17 00:00:00 2001 From: Peter Dulacka Date: Fri, 11 Aug 2023 09:13:22 +0200 Subject: [PATCH] Move system settings configuration to Beam module The settings were not propagated to the Skeleton and were ignored by the Skeleton apps. This could cause schedule commands not being execute due to "notOverlapping" flags, which were written to the Redis correctly. remp/remp#1292 --- config/system.php | 24 ++++++++++++++++++++++++ src/BeamServiceProvider.php | 1 + 2 files changed, 25 insertions(+) create mode 100644 config/system.php diff --git a/config/system.php b/config/system.php new file mode 100644 index 0000000..49ed704 --- /dev/null +++ b/config/system.php @@ -0,0 +1,24 @@ + $limits, + 'commands_overlapping_expires_at' => env('COMMANDS_OVERLAPPING_EXPIRES_AT', 15), + 'commands' => [ + 'aggregate_article_views' => [ + 'default_step' => env('AGGREGATE_ARTICLE_VIEWS_DEFAULT_STEP'), + ], + ], +]; diff --git a/src/BeamServiceProvider.php b/src/BeamServiceProvider.php index a1b3ef5..665318f 100644 --- a/src/BeamServiceProvider.php +++ b/src/BeamServiceProvider.php @@ -84,6 +84,7 @@ public function boot() __DIR__ . '/../public/' => public_path('vendor/beam'), __DIR__ .'/../config/beam.php' => config_path('beam.php'), __DIR__ .'/../config/services.php' => config_path('services.remp.php'), + __DIR__ .'/../config/system.php' => config_path('system.php'), ], ['beam-assets', 'laravel-assets'] );