From ad35a60e6cd2f4ad2870459d255304a37f9296ae Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Fri, 12 Jun 2026 22:00:50 +0200 Subject: [PATCH] Fix ensure_url_shortener_prod_config repo path resolution. Derive crashes config from script location so BE runs find config.php instead of doubling the examples/ segment and leaving url_shortener disabled. Co-authored-by: Cursor --- .../backend/scripts/ensure_url_shortener_prod_config.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/crash_reporter/backend/scripts/ensure_url_shortener_prod_config.php b/examples/crash_reporter/backend/scripts/ensure_url_shortener_prod_config.php index e1023c8..365bd52 100755 --- a/examples/crash_reporter/backend/scripts/ensure_url_shortener_prod_config.php +++ b/examples/crash_reporter/backend/scripts/ensure_url_shortener_prod_config.php @@ -11,8 +11,9 @@ */ declare(strict_types=1); -$repoRoot = realpath(dirname(__DIR__, 3)) ?: dirname(__DIR__, 3); -$crashConfigPath = $repoRoot . '/examples/crash_reporter/backend/config/config.php'; +$backendRoot = realpath(dirname(__DIR__)) ?: dirname(__DIR__); +$crashConfigPath = $backendRoot . '/config/config.php'; +$repoRoot = realpath(dirname($backendRoot, 3)) ?: dirname($backendRoot, 3); $urlConfigDir = $repoRoot . '/backend/url-shortener/config'; $urlConfigPath = $urlConfigDir . '/config.php';