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="firstname.lastname@example.org:/srv/www/staging.mysitename.co.uk/shared/uploads/" STAGSITE="https://staging.mysitename.co.uk"
path: web/wp server: docroot: web @development: ssh: email@example.com/srv/www/mysitename.co.uk/current @staging: ssh: firstname.lastname@example.org/srv/www/staging.mysitename.co.uk/current @production: ssh: email@example.com/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.