From 50cfff1092eb099acb8580ab7e2a304a3001cdab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sat, 27 Jul 2019 07:42:27 -0400 Subject: [PATCH] OK i'm the only one reading the readme it's good enough --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8fdc7dd..8c6b568 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,11 @@ ddev . drush -y site:install minimal --existing-config Put the D7 files in the following location: ``` -/d7/sites/default/files/ +/web/d7/sites/default/files/ ``` There is a reference to the `sites/default/files` in the database so that structure is mandatory for the migration. -The path in the `upgrade_d7_file.yml` migration file is different because this is executed inside the docker container so in the -docker container the is: `/var/www/html/` but no need to re-create those folders in the host machine. + +The path in the `upgrade_d7_file.yml` migration file is different because this is executed inside the docker container so in the docker container the is: `/var/www/html/` but no need to re-create those folders in the host machine. Create a database called `drupal7`: @@ -50,12 +50,13 @@ GRANT ALL ON drupal7.* to 'db'@'%' IDENTIFIED BY 'db'; Now `ctrl+c` out of there, and, again substituting the host and port for your own, import your file from whereever you placed and named your db SQL dump: ``` -mysql --host=127.0.0.1 --port=32779 --user=root --password=root --database=drupal7 < data/db.sql` +mysql --host=127.0.0.1 --port=32779 --user=root --password=root --database=drupal7 < data/db.mysql ``` -(Per [instructions for creating another database in ddev](https://stackoverflow.com/a/49785024/1943924).) +(Above per [instructions for creating another database in ddev](https://stackoverflow.com/a/49785024/1943924).) Once the files are in the correct place and the database has been created we can run the following to run all the migrations: -`ddev exec drush mim --group="migrate_drupal_7_geo"` - +``` +ddev . drush mim --group="migrate_drupal_7_geo" +```