# Using the sync script without Trellis

**URL:** https://discourse.roots.io/t/using-the-sync-script-without-trellis/21661
**Category:** plugins
**Created:** 2021-11-05T09:36:30Z
**Posts:** 7

## Post 1 by @stuartcusackie — 2021-11-05T09:36:30Z

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](https://roots.io/plugins/sync-script/) 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.

---

## Post 2 by @ben — 2021-11-05T16:58:21Z

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.)”

---

## Post 3 by @stuartcusackie — 2021-11-08T10:37:02Z

I’m a dummy. Always read the docs!

Thanks!

---

## Post 4 by @stuartcusackie — 2021-11-18T13:30:19Z

@ben

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

---

## Post 5 by @ben — 2021-11-18T16:37:22Z

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

---

## Post 6 by @system — 2021-12-17T09:36:58Z

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

---

## Post 7 by @ben — 2022-02-26T03:19:40Z


