DBCreator
(DBCreator)
January 27, 2020, 6:01pm
1
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?
Thank you.
samdark
(Alexander Makarov)
January 29, 2020, 12:02pm
2
Are you limited in storage space?
DBCreator
(DBCreator)
February 5, 2020, 6:32pm
3
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!!!
samdark
(Alexander Makarov)
February 5, 2020, 6:48pm
4
Security won’t be improved by deleting parts of the framework.
You can dramatically reduce size by:
Using --prefer-dist
with composer
when installing/updating framework.
Using --no-dev
not to install development dependencies such as Gii or Debug. You don’t need any of these in production.
Check your composer.json
, require
section. If there’s anything you don’t use, remove it. For example, if you don’t send emails, remove swiftmailer
.
1 Like
DBCreator
(DBCreator)
February 5, 2020, 7:26pm
5
Thank you for the advice.