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:
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user