1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 04:57:40 +03:00

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 <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-06-12 22:00:50 +02:00
parent f56301fbf7
commit ad35a60e6c

View File

@@ -11,8 +11,9 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
$repoRoot = realpath(dirname(__DIR__, 3)) ?: dirname(__DIR__, 3); $backendRoot = realpath(dirname(__DIR__)) ?: dirname(__DIR__);
$crashConfigPath = $repoRoot . '/examples/crash_reporter/backend/config/config.php'; $crashConfigPath = $backendRoot . '/config/config.php';
$repoRoot = realpath(dirname($backendRoot, 3)) ?: dirname($backendRoot, 3);
$urlConfigDir = $repoRoot . '/backend/url-shortener/config'; $urlConfigDir = $repoRoot . '/backend/url-shortener/config';
$urlConfigPath = $urlConfigDir . '/config.php'; $urlConfigPath = $urlConfigDir . '/config.php';