From 1512e55dac3a56d06cd049e584124b6b38f06211 Mon Sep 17 00:00:00 2001 From: Tom Duncalf Date: Thu, 7 Jan 2021 09:31:36 +0000 Subject: [PATCH 1/2] Add instructions on installing Magento via CLI This confused me a bit as I am new to Magento and 2.4 needs to be installed via the CLI --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 10bfaed..456f048 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,20 @@ dockergento setup ## Usage +### Installing Magento + +For a new store with Magento 2.4, you will need to install Magento via the command line before you can use it. Follow the instructions at https://devdocs.magento.com/guides/v2.4/install-gde/install-quick-ref.html, using `db` as the database host and `elasticsearch` as the Elasticsearch host. + +For example: + +``` + dockergento magento setup:install --base-url=http://local.magento.com --db-host=db --db-name=magento --db-user=magento --db-password=magento \ +--admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \ +--admin-user=admin --admin-password=admin123 --language=en_US \ +--currency=USD --timezone=America/Chicago --use-rewrites=1 \ +--elasticsearch-host=elasticsearch +``` + ### Start Application ``` From e3925731ef372e9ab5c429ba99c93034e5405ea7 Mon Sep 17 00:00:00 2001 From: Tom Duncalf Date: Thu, 7 Jan 2021 09:35:06 +0000 Subject: [PATCH 2/2] Extra note on disabling 2FA --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 456f048..d35e1c6 100644 --- a/README.md +++ b/README.md @@ -171,20 +171,28 @@ dockergento setup ## Usage -### Installing Magento +### Installing Magento 2.4 For a new store with Magento 2.4, you will need to install Magento via the command line before you can use it. Follow the instructions at https://devdocs.magento.com/guides/v2.4/install-gde/install-quick-ref.html, using `db` as the database host and `elasticsearch` as the Elasticsearch host. For example: ``` - dockergento magento setup:install --base-url=http://local.magento.com --db-host=db --db-name=magento --db-user=magento --db-password=magento \ +dockergento magento setup:install --base-url=http://local.magento.com --db-host=db --db-name=magento --db-user=magento --db-password=magento \ --admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \ --admin-user=admin --admin-password=admin123 --language=en_US \ --currency=USD --timezone=America/Chicago --use-rewrites=1 \ --elasticsearch-host=elasticsearch ``` +Make a note of the admin URL it prints out, e.g. `[SUCCESS]: Magento Admin URI: /admin_5gdsve`. + +You also need to disable 2FA, as the Docker image is not configured to send the necessary email: + +`dockergento bin/magento module:disable Magento_TwoFactorAuth` + +You can now access your admin at http:/// e.g. http://127.0.0.1/admin_5gdsve and login with the details you gave on the command line, e.g. admin/admin123. + ### Start Application ```