There is currently a drush command to create a domain what would be helpful is the ability to create a domain alias via drush to help in the DevOps / Automated workflow.

CommentFileSizeAuthor
#6 domain-3422071-mr69-6.patch19.64 KBthejimbirch

Issue fork domain-3422071

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sean_e_dietrich created an issue. See original summary.

sean_e_dietrich’s picture

Status: Active » Needs review

I added a drush command that allowed for the following:

drush domain-alias:list
drush domain-alias:add
drush domain-alias:update

drush domain-alias:delete
drush domain-alias:delete-bulk

With the following, it should give basic CRUD the ability to manage domain aliases via Drush so that domain aliases can be created to use with systems like Tugboat or mostly any other dynamic staging environment where the URL isn't static.

sean_e_dietrich’s picture

I realized that it wasn't super clear on how to test this.

  1. Download Module
  2. Install domain and domain_alias modules.
  3. Must have Drush 11+ installed.
  4. Add Domain either through UI or using Drush command (drush help domain:add for more info)
  5. Test all the following commands:
    • List out Domain Aliases: drush domain-alias:list
    • Add Domain Alias: drush domain-alias:add
    • Update Domain Alias: drush domain-alias:update
    • Delete a Single Domain Alias: drush domain-alias:delete
    • Bulk Delete Aliases for a domain: drush domain-alias:delete-bulk
dqd’s picture

Awesome work in here! +1 Thanks for your contribution. I will try to discuss this with maintainers. Feel free to add the "domain" channel I have created a while ago on Drupal Slack fpr further domain project contributors. This or the other way, I will try to come back to this issue asap!

thejimbirch’s picture

StatusFileSize
new19.64 KB

Added a static copy of the patch from the merge request.

danrod’s picture

Tests are not passing for some reason, I wonder why:

https://git.drupalcode.org/issue/domain-3422071/-/jobs/839356

mably’s picture

Status: Needs review » Needs work

Could we have a rebase of the MR please?

When all tests are green again, we should be ready for merge.

sean_e_dietrich’s picture

Status: Needs work » Needs review

Thank you for the update.@mably! I have merged in the branch and now the tests are passing.

mably’s picture

Status: Needs review » Fixed

Merged. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.