Last active
April 21, 2016 10:45
-
-
Save szeidler/b13218edc99b404afeed47ba44c30008 to your computer and use it in GitHub Desktop.
Workaround for missing vendor libraries, when migrating D8 sites with aegir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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