https://github.com/attiks/lunr-demo
Setup using Docksal
git clone git@github.com:attiks/lunr-demo.git
cd lunr-demo
fin start
fin composer install
fin drush -y si --existing-config
fin drush devel-generate:terms --max-depth=1 --bundle=tags 10
fin drush devel-generate:content --bundles=article 50
fin uli
- Open http://lunr-demo.docksal/admin/config/lunr_search/default/index to create the index.
- Open http://lunr-demo.docksal/search to test the search
mkdir -p static
drush tome:static --verbose -y
php -S localhost:8080 -t static
<?php
$settings['config_sync_directory'] = dirname($app_root) . '/config';
$settings['tome_static_directory'] = '../static';
Before installing remove the $databases['default']['default']
from the settings.php file.