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
I'm currently getting this error:
~/Sites/m2-demo$ lando magento:setup:quick && lando magento cache:flush
OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: "$LANDO_MOUNT/bin/magento": stat $LANDO_MOUNT/bin/magento: no such file or directory": unknown
/Sites/m2-demo/bin/magento exists, and if I lando ssh to the appserver and stat it, it gives the details on it:$ stat $LANDO_MOUNT/bin/magentowww-data@7a088a230829:
File: /app/bin/magento
Size: 799 Blocks: 8 IO Block: 4096 regular file
Device: 53h/83d Inode: 8634726041 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 501/www-data) Gid: ( 20/ dialout)
Access: 2019-05-23 01:55:24.000000000 +0000
Modify: 2019-05-22 21:15:42.000000000 +0000
Change: 2019-05-23 01:40:13.000000000 +0000
No more time to investigate tonight.