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

Drush aliases for automatically created multisites #116

Merged
merged 4 commits into from
Nov 20, 2018

Conversation

becw
Copy link
Member

@becw becw commented Nov 14, 2018

Addresses #105.

  • Creates a drush aliases file in drush/ when installing the-build
  • Adds a new alias to the drush alias file when creating a new multisite
  • Adds the multisite config to the-build's properties file automatically

To test:

  1. Install the-build with vendor/bin/the-build-installer
  2. Run drush sa -- it should list a sitename.local alias for your site
  3. Create a new multisite with phing drupal-add-multisite
  4. Run drush sa again -- there should be a new sitename.local.NEWSITE alias for your new multisite
  5. Also, your .the-build/build.default.properties.yml file should have the Drupal sites configuration for your new multisite

A couple notes...

  • This code got super messy because whitespace within XML is awkward

@becw becw self-assigned this Nov 14, 2018
@becw becw added this to the 2.0 milestone Nov 14, 2018
@becw
Copy link
Member Author

becw commented Nov 20, 2018

Merging so that I can cut a new alpha tag.

@becw becw merged commit f61745b into release-2.0 Nov 20, 2018
@becw becw deleted the multisite-drush-aliases branch November 20, 2018 20:44
@becw becw restored the multisite-drush-aliases branch November 20, 2018 20:44
@becw becw deleted the multisite-drush-aliases branch November 20, 2018 20:44
@becw becw restored the multisite-drush-aliases branch November 20, 2018 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants