drainpipe icon indicating copy to clipboard operation
drainpipe copied to clipboard

Drainpipe-dev overwrites sites.php, destroying multisite configs

Open tess-ten7 opened this issue 2 years ago • 2 comments

Whenever using lullabot/drainpipe-dev, web/sites/sites.php is overwritten even if overwrite is set to false. This destroys multisite configs and renders Drainpipe useless for installing multisites.

tess-ten7 avatar Jan 24 '24 19:01 tess-ten7

You should be able to set drupal-scaffold to not overwrite the file in composer.json like this:

        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            },
            "file-mapping": {
                "[web-root]/sites/sites.php": false,
            },
            "allowed-packages": ["lullabot/drainpipe", "lullabot/drainpipe-dev", "pantheon-systems/drupal-integrations"],
            "gitignore": "true"
        },

https://github.com/drupal/core-composer-scaffold#excluding-scaffold-files

Does that work? I know it does on at least one project of ours, but it was set up over a year ago so it's possible things have drifted since then.

deviantintegral avatar Jan 29 '24 12:01 deviantintegral

See also: https://github.com/Lullabot/drainpipe/issues/372

deviantintegral avatar Feb 19 '24 19:02 deviantintegral