--uri$sites[‘acguia.com’] = ‘acquia’;Run the URL in the –uri parameter:
drush site:install --uri=”acguia.com”Acquia directory is created under the sites folder.
Drupal projects created using the acquia/drupal-recommended-project template include DRS out-of-the box. To create the Acquia Drupal recommended project, you can use the composer create-project acquia/drupal-recommended-project command.
DRS is compatible with Drupal projects created using the drupal/recommended-project template.
Create the Drupal recommended project:
composer create-project drupal/recommended-project projectAdd DRS to the project:
composer require acquia/drupal-recommended-settingsRun the site:install command:
drush site:installNotice that the command picks up the default database credentials from local.settings.php.
Verify multisite features by running the site install command with the -uri option:
drush site:install --uri site1In BLT 14 and later, DRS is included out-of-the box. With this upgrade, DRS provides the setting-generation logic instead of BLT.
If you use BLT 13 or earlier, you can upgrade to BLT 14 by running the migrate command and automatically update the codebase to use BLT with DRS.
./vendor/bin/blt blt:migrateAfter the update, the following changes occur:
Changes in settings.php:
require DRUPAL_ROOT . "/../vendor/acquia/drupal-recommended-settings/settings/acquia-recommended.settings.php";
/**
* IMPORTANT.
*
* Do not include additional settings here. Instead, add them to settings
* included by `acquia-recommended.settings.php`. See Acquia's documentation for more detail.
*
* @link https://docs.acguia.com/
*/Changes in local.settings.php:
use Acquia\Drupal\RecommendedSettings\Helpers\EnvironmentDetector;To migrate BLT to DRS:
Run the migrate command to update the settings and local.settings files for each site in a multisite structure:
./vendor/bin/blt blt:migrateAdd DRS to the project:
composer require acquia/drupal-recommended-settingsRemove BLT from codebase:
composer remove acquia/bltRemove the BLT directory from your repo root:
rm -rf bltBLT plugins: Acquia recommends exploring composer-based automation for commands contained in BLT plugins such as Behat tests.
For example, the composer test that executes the necessary commands for tasks such as automated testing.
GrumPHP can be configured to lint Twig.DRS uses a plugin to support Acquia Site Factory functionality. Sites using DRS can use drs-acsf and run setup commands to set up the codebase used for Site Factory.
Add and configure the drs-acsf plugin to the project codebase.
Add the plugin:
composer require acquia/drs-acsfInitialise acsf:
./vendor/bin/drush drs:acsf:init:all
./vendor/bin/drush drs:acsf:init:drushValidate all the settings:
./vendor/bin/drush validate:acsfIf this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.