Skip to content

[multisite:new] Sets up files for a new multisite installation #23 - #2335

Merged
jmolivas merged 15 commits into
hechoendrupal:masterfrom
jludwig:command-for-new-multisite
Jun 2, 2016
Merged

jmolivas merged 15 commits into
hechoendrupal:masterfrom
jludwig:command-for-new-multisite

Conversation

@jludwig

@jludwig jludwig commented May 26, 2016

Copy link
Copy Markdown
Contributor

Addresses issue ##2253

Usage:
  multisite:new [options] [--] [<sites-subdir>]

Arguments:
  sites-subdir               Name of directory under 'sites' which should be created.

Options:
      --site-uri[=SITE-URI]  Site URI to add to sites.php
      --copy-install         Copies existing site from the default install.

Help:
 The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing 'default' installation

So, if someone wants to just create a directory with a settings.php file they could do:

$ drupal multisite:new files_only

If they wanted to instead copy what was already installed on default and add it to sites.php they could do:

$ drupal multisite:new --site-uri copy-install.localhost --copy-install copy_install

multisite-new

@todo:

@jmolivas

Copy link
Copy Markdown
Member

@jludwig Do you like to address #2333 on the same PR or work on another PR instead?

@jmolivas jmolivas added this to the 1.0.0-beta1 milestone May 27, 2016
@jmolivas jmolivas modified the milestone: 1.0.0-beta1 May 27, 2016
@jludwig

jludwig commented May 27, 2016

Copy link
Copy Markdown
Contributor Author

@jmolivas The latest commit deals with #2333 so in this PR is fine.

The commit before it adds some more exception handling, but I'm rushing out the door right now so it doesn't have as much cleanup and testing as I'd usually like. D:

Still, it's handling issues better now.

@itsdarrylnorris

Copy link
Copy Markdown
Contributor

@jmolivas This command should be register as service ? #2225 If so, shall we take care of this before merging ?

@jmolivas

Copy link
Copy Markdown
Member

I think is fine to merge like is it and then we can apply the changes to register as a service

@jmolivas

Copy link
Copy Markdown
Member

@darol100 did you test it?

@itsdarrylnorris

Copy link
Copy Markdown
Contributor

No...

@jmolivas

Copy link
Copy Markdown
Member

@jludwig can you sync your branch with master, since lots of changes merged latelly and update the PR

@jmolivas jmolivas added this to the 1.0.0-beta2 milestone May 30, 2016
@jludwig

jludwig commented Jun 1, 2016

Copy link
Copy Markdown
Contributor Author

@jmolivas @darol100 I made the changes to register it as a service.

@jmolivas

jmolivas commented Jun 2, 2016 •

Copy link
Copy Markdown
Member

@jludwig Tested this and works as expected.

drupal-multisite-new

Thanks for the work involved on the PR.

@jmolivas
jmolivas merged commit 007dadf into hechoendrupal:master Jun 2, 2016
@jmolivas

jmolivas commented Jun 2, 2016

Copy link
Copy Markdown
Member

@jludwig PR was merged. This will be included on next release, Thanks.

@jludwig
jludwig deleted the command-for-new-multisite branch June 3, 2016 17:50
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.

3 participants