- It is recommended to keep different sets of
settings.php
&services.yml
for local and other environments.- Local
settings.php
should be a copy ofexample.settings.local.php
- Local
services.yml
should be a combination ofdefault.services.yml
&development.services.yml
- Local
- It is recommended not commit
settings.php
to codebase.- This allows develeoper to include
local.settings.php
in theirsettings.php
- This also allows TL/TA to include respective settings & services on TEST/PROD environments.
- This allows develeoper to include
- In local
settings.php
:- It is recommended to keep the following caches pointed to null during development.
$settings['cache']['bins']['render']
$settings['cache']['bins']['page']
$settings['cache']['bins']['dynamic_page_cache']
- It is recommended to keep the css/js aggregation turned off for local:
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
- It is recommended to keep the following caches pointed to null during development.
- In local
services.yml
:- It is recommended to keep:
- Twig debugging as
true
- Twig caching as
false
- Twig debugging as
- It is recommended to keep:
- Database logging:
- For error logging
- Syslog:
- For error logging:
- Usually catches logs missed by Database logs
- For error logging:
- Devel suite:
- Devel Generate:
- Generates dummy content for testing
- Kint:
- Debugging code
- WebProfiler:
- Page performance
- Devel Generate:
- XHProf:
- PHP performance
- XHProf PHP extenstion needs to installed
- Having an XHProf UI is recommended
- Stage File Proxy:
- Servers Production files (Images, videos) on local
- Admin Toolbar & Admin Toolbar extras: