I have successfully deployed my application on a shared hosting environment.
I was just wondering what files/folders were not strictly necessary in production and could be deleted? Are there any that absolutely should be removed especially from a security perspective?
Are you limited in storage space?
No, but looking to reduce if possible and certainly interested in any best practices especially for optimum security.
Thank you taking the time to answer so many of my questions!!!
Security won’t be improved by deleting parts of the framework.
You can dramatically reduce size by:
composer when installing/updating framework.
--no-dev not to install development dependencies such as Gii or Debug. You don’t need any of these in production.
- Check your
require section. If there’s anything you don’t use, remove it. For example, if you don’t send emails, remove
Thank you for the advice.