THIS HAS BEEN MOVED TO improper/lando-magento2-template.
THIS GIST IS NO LONGER SUPPORTED
- This setup expects Lando to be installed and ready to go on your machine
- This setup expects Magento's stock
nginx.conf.sample
to exist in Magento's project root. Of course you can modify this file as needed moving forward. - You may experience performance gains by adding Redis, Elasticsearch, etc.. These services can easily be added following Lando's documentation.
- Add this Gist's
.lando.yml
to an empty directory - Run
lando magento:download
- Add your Magento credentials to auth.json
- Copy config to
lando.nginx.conf
- Launch your new store and deploy the database:
lando start && lando composer install && lando magento:setup:quick && lando magento cache:flush
- Optionally, you can pass the
----use-sample-data
to the thelando magento:setup:quick
command shown in this step.
- Optionally, you can pass the
That's it! You will then be able to access your Magento store at https://magento2.lndo.site/
HINT: Run
lando
to see available shortcuts such aslando magento
!
lando magento:setup:quick
is an alias for lando magento setup:install
and is pre-configured to setup the database connection.
- Defaults to developer mode.
- See
lando magento:setup:quick --help
for additional configuration options. - For the sake of shortcuts,
lando magento:setup:destroy
is also available.
If you did not pass additional arguments to lando magento:setup:quick
, you will probably want to know your admin URI and to create an admin user.
- Fetch Admin URI:
lando magento info:adminuri
- Create admin user:
lando magento admin:user:create
If you are using an older version of Lando, you may need to update in order for install_dependencies_as_root to be recognized