Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PL-46: D7 domain examples #13

Closed
wants to merge 15 commits into from

Conversation

damontgomery
Copy link
Contributor

@damontgomery damontgomery commented Jan 2, 2019

JIRA Ticket(s)

Description

Add Drupal 7 site with Domain example.

This includes work from #12 since that deals with some of the same files.

This is a rework of #11 with changes including those in #12.

Testing instructions

Relevant Screenshots/gifs:

example


Pull Request Guidelines

damontgomery and others added 10 commits January 2, 2019 14:28
- Use the `fs-demo` domain for all sites and use different subdomains.
- Create a config split for the Domain Access solr index so that the site name can be different. See `field_settings.site_name.configuration.site_name`.
- Create a config split for the Domain Access solr settings so that the hash can be different. Otherwise the document keys are the same and overwrite each other. See `site_hash`.
This allows config overrides for Domain Access to take into affect and avoids overwriting of Solr documents because of identical IDs.
@damontgomery
Copy link
Contributor Author

damontgomery commented Jan 2, 2019

I'll re-open this when I have it in a ready state.

Like #11, I'm getting the installation error:

    [drush] Executing '/var/www/federated-search-demo.local/vendor/bin/drush --site-name="Federated SOLR D7" --account-pass="admin" --nocolor --root="/var/www/federated-search-demo.local/web/d7-domain/docroot" --uri="http://d7-1.fs-demo.local" --config="/var/www/federated-search-demo.local/conf/drushrc.php" --yes site-install "standard"'...
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fs-demo-d7-domain.registry'       [error]
doesn't exist in
/var/www/federated-search-demo.local/web/d7-domain/docroot/includes/database/database.inc:2227
Stack trace:
#0 /var/www/federated-search-demo.local/web/d7-domain/docroot/includes/database/database.inc(2227):
PDOStatement->execute(Array)
#1 /var/www/federated-search-demo.local/web/d7-domain/docroot/includes/database/database.inc(697):
DatabaseStatementBase->execute(Array, Array)
#2 /var/www/federated-search-demo.local/web/d7-domain/docroot/includes/database/select.inc(1280):
DatabaseConnection->query('SELECT r.filena...', Array, Array)
#3 /var/www/federated-search-demo.local/web/d7-domain/docroot/includes/bootstrap.inc(3492):
SelectQuery->execute()
#4 /var/www/federated-search-demo.local/web/d7-domain/docroot/includes/bootstrap.inc(3408):
_registry_check_code('class', 'drush_drupal_si...')
#5 [internal function]: drupal_autoload_class('drush_drupal_si...')
#6 [internal function]: spl_autoload_call('drush_drupal_si...')
#7 /var/www/federated-search-demo.local/vendor/drush/drush/includes/engines.inc(525):
class_exists('drush_drupal_si...')
#8 /var/www/federated-search-demo.local/vendor/drush/drush/commands/core/site_install.drush.inc(270):
drush_include_engine('drupal', 'site_install')
#9 /var/www/federated-search-demo.local/vendor/drush/drush/includes/command.inc(422):
drush_core_site_install('standard')
#10 /var/www/federated-search-demo.local/vendor/drush/drush/includes/command.inc(231):
_drush_invoke_hooks(Array, Array)
#11 /var/www/federated-search-demo.local/vendor/drush/drush/includes/command.inc(199):
drush_command('standard')
#12 /var/www/federated-search-demo.local/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#13 /var/www/federated-search-demo.local/vendor/drush/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#14 /var/www/federated-search-demo.local/vendor/drush/drush/drush.php(12): drush_main()
#15 {main}

The Domain Access check to see if `drush si` is being used wasn't working. This approach uses a pre-install settings.php file and a post-install file with the Domain Access include.
@damontgomery damontgomery reopened this Jan 3, 2019
…en installing all sites.

The `build.drupal.settings_dest` is set when the library is loaded, but it needs to change based on the site, so we pass those parameters in when we call `drupal-prepare-settings`.
@damontgomery
Copy link
Contributor Author

I've updated the build task to use a pre-install and post-install settings.php. It looks like Domain Access tries to detect if Drush is running, but it wasn't working and this seems to get the job done.

@damontgomery damontgomery changed the title PL-46: D7 domain access examples PL-46: D7 domain examples Jan 4, 2019
It's not really `Domain Access`, but `Domain`.
@damontgomery damontgomery mentioned this pull request Jan 4, 2019
@agentrickard
Copy link
Contributor

This has been superceded by more recent work.

@agentrickard agentrickard deleted the feature/PL-46-d7-domain-access-examples branch January 24, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants