chore: set COMPOSER_HOME for shared hosting deployment
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user