Hello All. I’ve just deployed my first staging site with Trellis, Bedrock and Sage and I’m struggling to get the Sync Script plugin to work. Every time I try to sync from Development to staging it says it has connected to development and then successfully connected to staging but once it has finished nothing appears to have changed… Here are the files I’ve modified:
At the top of sync.sh:
DEVDIR="web/app/uploads/"
DEVSITE="http://mysitename.test"
PRODDIR="web@mysitename:/srv/www/mysitename.co.uk/shared/uploads/"
PRODSITE="https://mysitename.co.uk"
STAGDIR="web@staging.mysitename.co.uk:/srv/www/staging.mysitename.co.uk/shared/uploads/"
STAGSITE="https://staging.mysitename.co.uk"
In wp-cli.yml:
path: web/wp
server:
docroot: web
@development:
ssh: vagrant@mysitename.test/srv/www/mysitename.co.uk/current
@staging:
ssh: web@staging.mysitename.co.uk/srv/www/staging.mysitename.co.uk/current
@production:
ssh: web@mysitename.co.uk/srv/www/mysitename.co.uk/current
Doesn’t seem to update the media folder or the database on the staging site when I run:
./sync.sh development staging
So I’ve ended up doing it manually which defeats the point, obviously… I know I’m doing something wrong but can’t seem to figure it out… Any help greatly appreciated.