From fe7f19b8a7957fc4d33f8482295b7563544fc0b7 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 2 Jul 2026 13:24:28 +0800 Subject: [PATCH] chore: set COMPOSER_HOME for shared hosting deployment --- public/git-pull.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/git-pull.php b/public/git-pull.php index fff6e2cea..231c38175 100644 --- a/public/git-pull.php +++ b/public/git-pull.php @@ -141,8 +141,8 @@ execute("git clean -fd 2>&1"); // Force clean untracked files and directories // 2. Pull latest changes execute("git pull origin main 2>&1"); -// 3. Install composer dependencies -execute("composer install --no-dev --optimize-autoloader 2>&1"); +// 3. Install composer dependencies (set COMPOSER_HOME to /tmp to avoid permission errors on shared hosting) +execute("export COMPOSER_HOME=/tmp && composer install --no-dev --optimize-autoloader 2>&1"); // 4. Re-optimize Laravel cache and run migrations execute("php artisan optimize:clear 2>&1");