Skip to content

Repository files navigation

ktc.dk

Setup locally

  • 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

Elasticsearch setup

Elasticsearch on Debian

Modules

  • 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

About

ktc.dk

Resources

Stars

1 star

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages