Skip to content

Started Over Notes to upgrade Drupal 7 to Drupal 8

carolyncole edited this page Feb 6, 2020 · 2 revisions

to create the machine the first time

mkdir byzantine8
cd byzantine8/
lando init --source remote --remote-url https://www.drupal.org/download-latest/tar.gz --remote-options="--strip-components 1" --recipe drupal8 --webroot . --name byzantine8
lando start
cp sites/default/default.settings.php sites/default/settings.php
vi sites/default/settings.php
lando drush --yes site-install minimal --site-name='Byzantine 8 upgrade' --site-mail='[email protected]' --account-name='admin' --account-mail='[email protected]' --account-pass='admin' 
chmod +w sites/default
chmod +w sites/default/*
lando composer require "drush/drush:^9.7.1"
lando composer require "drupal/migrate_plus"
lando composer require "drupal/migrate_tools"
lando drush --yes en migrate migrate_drupal migrate_drupal_ui
lando drush uli
lando db-import --host legacy dump.sql
http://byzantine8.lndo.site/upgrade

use legacy for the mysql host and mysql/mysql. Should get a list of missing components.

to restart without new dump

lando start
lando composer install
lando drush --yes site-install minimal --site-name='Byzantine 8 upgrade' --site-mail='[email protected]' --account-name='admin' --account-mail='[email protected]' --account-pass='admin' 
chmod +w sites/default
chmod +w sites/default/*
lando composer require "drush/drush:^9.7.1"
lando composer require "drupal/migrate_plus"
lando composer require "drupal/migrate_tools"
lando drush --yes en migrate migrate_drupal migrate_drupal_ui
lando drush uli
lando db-import --host legacy dump.sql