From d8f7ded7576088dd120e3bf4d28d4efac587f25e Mon Sep 17 00:00:00 2001 From: Ankit Pathak <106175376+apathak18@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:10:44 +0530 Subject: [PATCH] ACMS-0000: Update README.md Updated the README with the information to handle domain/url with the --uri parameter. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 62bb3ae..04e20bf 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,20 @@ automatically generate the settings.php in the backend. ``` drush site:install --uri site1 ``` +##### To pass url in the --uri parameter, user need to do some prerequisites: +- Copy example.sites.php and paste in your /sites/ +- Rename example.sites copy.php to sites.php +- Add your domain or url in the sites.php which you want to pass in the --uri + + ```For example: $sites[‘acquia.com’] = ‘acquia’;``` +- Now users can run with domain/url in the –uri parameter + + ```./vendor/bin/drush site:install --uri=”acquia.com”``` + +From the above example, the acquia directory will be created under the sites folder. + +Note: Ignore the first two steps if user already setup the multi-site with simple uri like --uri=site1 or --uri=mysite +First two steps only necessary if the user is setting up the very first multi-site with url or domain. The plugin offers various events that allow you to implement custom logic based on when these events are triggered. You can find the examples of such