Fix JS packages

This commit is contained in:
Mischa Spelt
2026-09-07 11:11:17 +02:00
parent b12fb86c1c
commit b46b24bb83
4 changed files with 16 additions and 9 deletions
+10 -3
View File
@@ -10,9 +10,9 @@ echo "Setting up dependencies..."
# Create vendor directories and fix permissions
echo "Fixing permissions..."
mkdir -p bootstrap/cache storage/framework storage/logs
chown -R www-data:www-data bootstrap/cache storage/framework storage/logs
chmod -R ug+rwX bootstrap/cache storage/framework storage/logs
mkdir -p bootstrap/cache storage/framework storage/logs public/assets/vendor
chown -R www-data:www-data bootstrap/cache storage/framework storage/logs public/assets/vendor
chmod -R ug+rwX bootstrap/cache storage/framework storage/logs public/assets/vendor
# Install PHP dependencies
echo "Installing PHP packages..."
@@ -26,8 +26,15 @@ composer install \
if grep -q "\"dependencies\"" package.json; then
echo "Installing npm packages..."
npm ci --omit=dev
node scripts/setup-vendor.js
fi
# Fix permissions
echo "Fixing permissions..."
chown -R www-data:www-data \
bootstrap/cache \
public/assets/vendor
chmod -R ug+rwX bootstrap/cache
echo "✓ Setup complete, starting Apache..."