- Add database dump to this folder: /docker/data/db-init. The database for the local setup will then be set up automatic when you run:
docker-compose up -d
- After that create the settings.php file in: /public_html/sites/default with the following db settings:
$databases = array(
'default' =>
array(
'default' =>
array(
'database' => 'drop',
'username' => 'drop',
'password' => 'drop',
'host' => 'mysql',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
- Disable ktc_crm and ktc_users_signup and say no to update composer. Run the following commands:
- ./shortcut.sh drush dis ktc_crm
- ./shortcut.sh drush dis ktc_users_signup
- use the command: ./shortcut.sh drush uli to login to the site
- save the file system: /admin/config/media/file-system
- enable stage_file_proxy
- wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
- echo "deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main" > /etc/apt/sources.list.d/elasticsearch.list
- apt-get update && apt-get install elasticsearch
- Edit /etc/elasticsearch/elasticsearch.yml and set: "discovery.zen.ping.multicast.enabled: false" (will disable auto cluster discovery)
- cd public_html
- drush en composer_manager # y, y, n (maybe also cd ~;drush cache-clear drush)
- drush vset composer_manager_vendor_dir ../vendor
- drush vset composer_manager_file_dir ../
- cd ..
- drush -r <path_to_public_html> composer-rebuild
- composer install
- cd public_html
- drush en elasticsearch_connector # y, y, y
- Add cluster on /admin/config/elasticsearch-connector/clusters
- drush en search_api
- drush en elasticsearch_connector_search_api
- Setup a server on /admin/config/search/search_api
- Use search_api_pages (https://www.drupal.org/project/search_api_page) for a search page or use another search_api way