Tweaks for sync-script with trellis and lima

Hey everyone!

I’ve tweaked the sync-script to use it with Lima and Trellis, and I want to share my approach with you. If you’re interested in syncing between your environments and are using lima for virtualization, keep reading! :wink:

Lima WP-CLI aliases

Add the following to your ~/.ssh/config to ensure the wp-cli alias can connect to your lima vm:

#  ~/.ssh/config
Include ~/.lima/*/ssh.config
# site/wp-cli.yml
path: web/wp

@development:
  ssh: $USER@lima-example.com/srv/www/example.com/current
@staging:
  ssh: web@example.com/srv/www/example.com/current
@production:
  ssh: web@example.com/srv/www/example.com/current
3 Likes

This topic was automatically closed after 42 days. New replies are no longer allowed.