docker compose up -d
docker compose exec php composer install
docker compose exec php drush site:install --existing-config --account-pass=1234
docker compose exec php drush cim
Open in Browser http://bksi.docker.localhost:8000/
https://github.com/Chkhikvadzeg/BKSI
https://www.drupal.org/project/tailwindcss To re-compile the CSS:
npm install
npm run build
Uncommenting the following lines in the settings.php file. Make sure this code is at the bottom of your settings.php file so that local settings can override default settings.
if (file_exists(__DIR__ . '/settings.local.php')) {
include __DIR__ . '/settings.local.php';
}
and then copying the file example.settings.local.php from web/sites folder to web/sites/default folder and rename it to settings.local.php
cp web/sites/example.settings.local.php web/sites/default/settings.local.php
It adds a few settings which will help you in debugging and making development easier. If you don't want any of them in particular, you can always comment them out.
Note : If you think adding a file_exists call to each page will slow down the site, you can always remove it in the production code.
Disable render caching and JavaScript/CSS aggregation
- Uncomment lines in settings.local.php
- Ensure that the following lines are uncommented by removing the # character from the beginning of the line.
This first set disables the CSS and JavaScript aggregation features.
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
- And uncommenting this line effectively disables, or rather, bypasses the Render API cache:
$settings['cache']['bins']['render'] = 'cache.backend.null';
- You can also disable the Dynamic Page Cache by uncommenting this line:
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
Enable Twig debugging options
- Edit the following variables under the
twig.config:section.
If you're placing this into your sites/development.services.yml file, add the twig.config configuration indented under the parameters: line. Ensure that your code additions are appropriately indented with 2 spaces, not the tab character (or an error will result).
parameters:
twig.config:
debug: true
auto_reload: true
cache: false