Skip to content

Commit

Permalink
fix: Ensure bootstrap/cache directory exists with correct permissions…
Browse files Browse the repository at this point in the history
… before composer install
  • Loading branch information
sudoshi committed Feb 22, 2025
1 parent c15d533 commit 6512047
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy-production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ git stash --include-untracked
log "Pulling latest changes..."
git pull origin main

# Ensure bootstrap/cache directory exists with correct permissions
log "Setting up bootstrap/cache directory..."
mkdir -p /var/www/Zephyrus/bootstrap/cache
sudo_cmd chown -R www-data:www-data /var/www/Zephyrus/bootstrap/cache
sudo_cmd chmod -R 775 /var/www/Zephyrus/bootstrap/cache

# Install/update PHP dependencies
log "Installing PHP dependencies..."
composer install --no-interaction --prefer-dist --optimize-autoloader
Expand Down

0 comments on commit 6512047

Please sign in to comment.