doesn't work with Varbase distribution
Not sure why but CiviCRM installation on Varbase doesn't work the way it's supposed to, it requires some manual interventions:
composer create-project Vardot/varbase-project varbase2 --no-dev --no-interaction
composer require civicrm/civicrm-asset-plugin:'~1.1'
composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.31'
After installing the asset plugin, the require civi-core fails in a couple ways:
-
Applying patches for adrienrn/php-mimetyper https://patch-diff.githubusercontent.com/raw/adrienrn/php-mimetyper/pull/15.patch (Update gitignore to ensure that sites that manage via git don't miss out on the important db.json file)
has to be done manually, all that patch does is gitignore node_modules, anyway, it fails to apply and stops composer. So, go apply that patch yourselve and then require civicrm-core again... - It will run for a long time, and then fail with some messages, saying "reverting composer.json to its original content" but that doesn't actually happen, composer.json doesn't actually get reverted and all the files downloaded are in place.
-
docroot/libraries/civicrm
is missing, so I copy it from a non-broken installation, and then git commit. And at this point CiviCRM seems to work, but this plugin didn't seem to do what's I believe it's supposed to.
Originally noted at https://www.drupal.org/project/varbase/issues/3181336