This is a plugin for https://github.com/lando/lando.
Clone the repository to your plugins directory:
git clone [email protected]:eikona-media/lando-eimed-toolkit.git ~/.lando/plugins/lando_eimed_toolkit
or clone with https:
git clone https://github.com/eikona-media/lando-eimed-toolkit.git ~/.lando/plugins/lando_eimed_toolkit
Copy the configuration sync.env to your project:
cp ~/.lando/plugins/lando_eimed_toolkit/scripts/sync.env [project_dir]/.lando/sync.env
Remove all active default variables which you don't want to overwrite. Uncomment all inactive variables and configure them to use the sync!
Add the tooling to your .lando.yml
:
tooling:
sync:
service: appserver
description: Sync database and files between remote and local
cmd: /helpers/sync.sh
user: root
Now you should be able to call lando sync
in your project!
You can override variables in your own .lando.local.yml
- e.g.
services:
appserver:
overrides:
environment:
SYNC_SSH_USER: "xxxxx"
SYNC_REMOTE_USE_SUDO: ""
If you have installed the plugin in ~/.lando/plugins/lando-eimed-toolkit
you should rename the path because of lando/lando#3394
mv ~/.lando/plugins/lando-eimed-toolkit ~/.lando/plugins/lando_eimed_toolkit