Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save szeidler/b13218edc99b404afeed47ba44c30008 to your computer and use it in GitHub Desktop.

Select an option

Save szeidler/b13218edc99b404afeed47ba44c30008 to your computer and use it in GitHub Desktop.
Workaround for missing vendor libraries, when migrating D8 sites with aegir
#!/bin/bash
## Aegir has major problems while migrating sites, when the new platform doesn't have the vendor libraries available.
## Here is a workaround for solving that problem.
## Copy the working site into the new platform.
## That needs to be done, to let composer_manager know about all the site package requirements
cp -r /var/aegir/platforms/old_platform/sites/site.name.org /var/aegir/platforms/new_platform/sites/site.name.org.migration
cd /var/aegir/platforms/new_platform
## Initialize composer_manager if not already done
php modules/contrib/composer_manager/scripts/init.php
## Perform composer drupal-update to rebuild composer.json and download all required vendor libraries.
composer drupal-update
## Remove the tempoary copied site, because it's not needed anymore.
rm -r /var/aegir/platforms/new_platform/sites/site.name.org.migration
## Start the normal aegir migratio from UI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment