prepare for cli updates with custom php binary
This commit is contained in:
@@ -98,5 +98,5 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"version": "26.0.2",
|
"version": "26.0.2",
|
||||||
"build": "53"
|
"build": "54"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,12 @@ resolve_php_bin() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PHP_BIN="$(resolve_php_bin)"
|
PHP_BIN="$(resolve_php_bin)"
|
||||||
|
echo "Resolved PHP binary: $PHP_BIN"
|
||||||
|
if command -v "$PHP_BIN" >/dev/null 2>&1; then
|
||||||
|
echo "PHP version ($PHP_BIN): $($PHP_BIN -v | head -n 1)"
|
||||||
|
else
|
||||||
|
echo "PHP binary '$PHP_BIN' not found in PATH."
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -x "artisan" ]]; then
|
if [[ -x "artisan" ]]; then
|
||||||
CONFIGURED_PHP="$($PHP_BIN artisan tinker --execute="echo \\App\\Models\\Setting::where('key','system.php_binary')->value('value') ?? '';" 2>/dev/null || true)"
|
CONFIGURED_PHP="$($PHP_BIN artisan tinker --execute="echo \\App\\Models\\Setting::where('key','system.php_binary')->value('value') ?? '';" 2>/dev/null || true)"
|
||||||
@@ -50,6 +56,11 @@ if [[ -x "artisan" ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Final PHP binary: $PHP_BIN"
|
||||||
|
if command -v "$PHP_BIN" >/dev/null 2>&1; then
|
||||||
|
echo "Final PHP version ($PHP_BIN): $($PHP_BIN -v | head -n 1)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing JS dependencies..."
|
echo "Installing JS dependencies..."
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user