fix-permissions.sh 517 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. # Clear Laravel caches
  3. php artisan cache:clear
  4. php artisan route:clear
  5. php artisan view:clear
  6. # Remove old scribe cache if exists
  7. rm -rf .scribe/endpoints.cache
  8. # Generate new documentation
  9. php artisan scribe:generate
  10. # Fix permissions
  11. chown -R root:root public/docs
  12. chown -R root:root storage
  13. chown -R root:root bootstrap/cache
  14. # Set proper permissions
  15. chmod -R 775 storage
  16. chmod -R 775 bootstrap/cache
  17. chmod -R 775 public/docs
  18. chmod -R 777 ./
  19. echo "All commands completed and permissions fixed!"