laravel-folder-init-and-clean-cache-should-run-in-docker-root-folder.sh 850 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. mkdir -p public_html/storage/cms/cache/
  3. mkdir -p public_html/storage/cms/twig/
  4. mkdir -p public_html/storage/cms/combiner/
  5. mkdir -p public_html/storage/framework/cache/
  6. mkdir -p public_html/storage/framework/sessions/
  7. mkdir -p public_html/storage/framework/views/
  8. mkdir -p public_html/storage/logs/
  9. rm -rf public_html/storage/cms/cache/*
  10. rm -rf public_html/storage/cms/twig/*
  11. rm -rf public_html/storage/cms/combiner/*
  12. rm -rf public_html/storage/framework/cache/*
  13. rm -rf public_html/storage/framework/sessions/*
  14. rm -rf public_html/storage/framework/views/*
  15. rm -rf public_html/storage/logs/*
  16. chmod -R 775 public_html/storage/
  17. #chmod 664 public_html/storage/*.key
  18. cd public_html
  19. php artisan view:clear
  20. php artisan config:cache
  21. echo "run [chown -R user:apache . ] if it still has problem !"