By Max

2019-02-11 11:14:59 8 Comments

For a customer we should do a bunch of sites build with Drupal. Multisite is not possible because of different hosting solutions.

Would creating a custom distribution work out for that case? Is it possible to make a "private" distribution not listed on


@safetypin 2019-02-11 16:41:47

You can add your own git repositories as sources for composer. This way, you can allow composer to look for code updates in areas other than the standard (public) repositories.

In composer.json, look for the "extra" array, and add a "repositories" item, and then add your own repositories like this:

    "extra": {
        "repositories": [
                "type": "vcs",
                "url": "..."

More info on adding repositories to composer.

You can also configure composer to use private repositories.

@kiamlaluno 2019-02-11 15:52:14

On, a distribution is a single download containing Drupal core, contributed modules, themes, and pre-defined configuration. You could create a distribution locally, using the same tools used on to create a distribution, but that would involve creating a drupal-org.make file using drush make, which is a command removed from Drush.

Instead, as Drush itself suggests, you should use Composer. Create a composer.json file, locally, and add all the dependencies (including modules) you need with composer require. If then you need, for example, to create specific content types, roles, taxonomy terms, or other entities, you could create an installation profile, as described in How to Write a Drupal 8 Installation Profile. Using an installation profile doesn't work for already created sites, but for sites you still have to create, a custom installation profile helps in building a site.

As example of what an installation profile can do, see the content of the core/profiles/standard directory, in particular the config directory, which contains the configuration files necessary to create the default entities you normally used on the default Drupal installation. An installation profile can have dependencies, a list of core modules that needs to be installed (see the file), implement hook_install() (see the standard.install file) and other hooks a module can implements, including the one to alter the site configuration form shown during the installation of Drupal (see the standard.profile file).

@miteshmap 2019-02-11 12:09:30

As you are deploying the same Drupal sites for different hosting providers, and you may want to install the same modules again and again with same kind of settings. Distribution is the way to manage initial default module dependencies and settings, And you can create your custom distribution and place it in /profiles folder.

@kiamlaluno 2019-02-11 15:46:19

The /profiles directory is for installation profiles, which are quite different from distributions.

Related Questions

Sponsored Content

4 Answered Questions

[SOLVED] How to make existing public files private?

  • 2018-07-09 21:34:07
  • leymannx
  • 588 View
  • 5 Score
  • 4 Answer
  • Tags:   8 files

1 Answered Questions

[SOLVED] How do I package a distribution on

1 Answered Questions

Information added by on Distribution

  • 2018-01-18 20:08:44
  • Dragu Alexandru
  • 43 View
  • 0 Score
  • 1 Answer
  • Tags:   distributions

1 Answered Questions

[SOLVED] Create a distribution

1 Answered Questions

[SOLVED] Drupal 8 master site for managing customer Drupal 8 sites? Possible?

  • 2017-03-29 13:40:34
  • Antoon Verroken
  • 188 View
  • 2 Score
  • 1 Answer
  • Tags:   8

1 Answered Questions

[SOLVED] How do modules end up in the profiles directory in distributions?

  • 2017-01-11 12:25:04
  • dang42
  • 55 View
  • 0 Score
  • 1 Answer
  • Tags:   distributions

2 Answered Questions

[SOLVED] How can I include Guzzle as a library in a distribution?

1 Answered Questions

[SOLVED] How to test Drupal distributions and see examples

1 Answered Questions

0 Answered Questions

how can contrib modules be enabled in install files without including the files?

  • 2012-07-15 08:08:00
  • Joachim
  • 72 View
  • 1 Score
  • 0 Answer
  • Tags:   distributions

Sponsored Content