Using the sync script without Trellis

I’ve recently started using Laragon for all of my virtualhosts. It replaces Vagrant and Laravel Homestead and is very similar to Wamp and XXamp. I haven’t run into any issues yet and it has very fast response times.

I would still like to use the official Roots Sync Script plugin for syncing between production and development. It may not be possible as it seems to rely on ssh connections through wp-cli, which are set up in wp-cli.yml like so:

@development:
  ssh: vagrant@mywebsite.test/home/vagrant/mywebsite.com
@production:
  ssh: web@mywebsite.com/srv/www/mywebsite.com/current

I’m wondering if anyone knows a trick that could bypass the ssh connection here? Something like:

@development:
  *notssh*: mywebsite.test
 @production:
  ssh: web@mywebsite.com/srv/www/mywebsite.com/current

Probably not possible but it would save me a good deal of time when syncing databases.

The sync script comes with support for the --local flag to do this, please reference the README area titled “Local development without VM (Valet, etc.)”

1 Like

I’m a dummy. Always read the docs!

Thanks!

@ben

Actually, this is behaving a bit strangely for me. All the urls in the database were replaced with http://trellis.test rather than http://mysite.test. Not sure why but I’m having to run an additional wp search-replace for the time being.

Can you please shoot me an email (ben@roots.io) with your modified/configured script?

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