diff --git a/git_update.sh b/git_update.sh index 9e73749..f7a7896 100755 --- a/git_update.sh +++ b/git_update.sh @@ -89,6 +89,7 @@ read_setting_php_bin() { echo "" return fi + echo "Running with PHP binary: $PHP_BIN -r " >&2 "$PHP_BIN" -r ' require "vendor/autoload.php"; $app = require "bootstrap/app.php"; @@ -112,6 +113,7 @@ if [[ -z "$COMPOSER_BIN" ]]; then echo "Composer not found in PATH." exit 1 fi +echo "Running with PHP binary: $PHP_BIN $COMPOSER_BIN install --no-dev --optimize-autoloader" "$PHP_BIN" "$COMPOSER_BIN" install --no-dev --optimize-autoloader CONFIGURED_PHP="$(read_setting_php_bin)" @@ -129,15 +131,19 @@ echo "Building assets..." npm run build echo "Running migrations..." +echo "Running with PHP binary: $PHP_BIN artisan migrate --force" "$PHP_BIN" artisan migrate --force echo "Syncing version/build to settings..." +echo "Running with PHP binary: $PHP_BIN -r " VERSION="$("$PHP_BIN" -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["version"] ?? "";')" +echo "Running with PHP binary: $PHP_BIN -r " BUILD="$("$PHP_BIN" -r '$c=json_decode(file_get_contents("composer.json"), true); echo $c["build"] ?? "";')" echo "Computed from composer.json: VERSION=$VERSION, BUILD=$BUILD" if [[ -n "$VERSION" || -n "$BUILD" ]]; then echo "Updating settings version/build (VERSION=$VERSION, BUILD=$BUILD)..." + echo "Running with PHP binary: $PHP_BIN -r " SPEEDBB_VERSION="$VERSION" SPEEDBB_BUILD="$BUILD" "$PHP_BIN" -r ' require "vendor/autoload.php"; $app = require "bootstrap/app.php"; @@ -165,6 +171,7 @@ if [[ -n "$VERSION" || -n "$BUILD" ]]; then echo "Updated build rows: {$updated}\n"; } ' \ + && echo "Running with PHP binary: $PHP_BIN -r " \ && "$PHP_BIN" -r ' require "vendor/autoload.php"; $app = require "bootstrap/app.php";