Use this module and the directions below as a starting point to easily get your Drupal 6/7 sites into Drupal 8.
- Setup both your Drupal 7 and Drupal 8 sites in Lando. Configure the Drupal 8 site to install Drush 9.
- Copy the .lando.yml file in this repo to your Drupal 8 site root (change the app name)
- Export your Drupal 7 DB with
lando db-export dump.sql.gz
- Copy the settings.local.php file in this repo to your Drupal 8 sites/default folder.
- Import the Drupal 7 DB into the Drupal 8 Site with
lando db-import --host=d7db --user=drupal7db dump.sql.gz
- Run this in your Drupal 8 project root:
lando composer require 'drupal/migrate_plus:^4.2'
lando composer require 'drupal/migrate_tools:^4.5'
lando composer require 'drupal/migrate_upgrade:~3.0.0'
- Enable this module.
- Run the following commands in your D8 site:
lando drush migrate-upgrade --legacy-db-key=migrate --configure-only
lando drush config-export --destination=/tmp/migrate
lando ssh -s appserver -u root
cp /tmp/migrate/migrate_plus.* /app/path/to/migration_boilerplate/unused_config
chown -R www-data:www-data /app/path/to/migration_boilerplate/unused_config
exit
lando drush cim -y
- Run
lando drush ms
to make sure the configs made it over.