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": "54"
|
"build": "55"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ git checkout stable
|
|||||||
echo "Pulling latest stable..."
|
echo "Pulling latest stable..."
|
||||||
git pull --ff-only
|
git pull --ff-only
|
||||||
|
|
||||||
echo "Installing PHP dependencies..."
|
|
||||||
composer install --no-dev --optimize-autoloader
|
|
||||||
|
|
||||||
resolve_php_bin() {
|
resolve_php_bin() {
|
||||||
if [[ -n "${PHP_BIN:-}" ]]; then
|
if [[ -n "${PHP_BIN:-}" ]]; then
|
||||||
echo "$PHP_BIN"
|
echo "$PHP_BIN"
|
||||||
@@ -45,6 +42,14 @@ else
|
|||||||
echo "PHP binary '$PHP_BIN' not found in PATH."
|
echo "PHP binary '$PHP_BIN' not found in PATH."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Installing PHP dependencies..."
|
||||||
|
COMPOSER_BIN="$(command -v composer || true)"
|
||||||
|
if [[ -z "$COMPOSER_BIN" ]]; then
|
||||||
|
echo "Composer not found in PATH."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
$PHP_BIN "$COMPOSER_BIN" install --no-dev --optimize-autoloader
|
||||||
|
|
||||||
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)"
|
||||||
if [[ -n "$CONFIGURED_PHP" ]]; then
|
if [[ -n "$CONFIGURED_PHP" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user