Updating
Update the add-on
Section titled “Update the add-on”The add-on and the engine image are versioned together. Updating the add-on updates the engine.
ddev add-on get NoiXdev/ddev-sync --version vXddev restartReplace vX with the release you want; releases are listed on GitHub. While ddev-sync is in release candidates, always give an explicit version, for example ddev add-on get NoiXdev/ddev-sync --version v0.1.0-rc.8. Once a final release exists, leaving out --version takes the latest one.
The update replaces the files the add-on owns, the ones marked #ddev-generated. Your .ddev/ddev-sync.yaml and .ddev/ddev-sync/local.yaml are not touched. See Installation for the full ownership table.
On the first start after the update, the new image is pulled. The start says so while it happens.
How the image version is pinned
Section titled “How the image version is pinned”The add-on’s compose file names the engine image and the version it was released with: noixdev/ddev-sync at the release’s tag. There is no latest tag, so a project always runs the engine version of the add-on it has installed, and nothing changes underneath you until you update.
You can override either part in .ddev/.env.local:
| Variable | Default | Meaning |
|---|---|---|
DDEV_SYNC_IMAGE | noixdev/ddev-sync | The engine image repository. |
DDEV_SYNC_VERSION | the version of the installed release | The image tag. |
.ddev/.env.local is the git-ignored file for machine-specific keys, and it wins over .ddev/.env. Leave both unset for a published release.
Run a local build
Section titled “Run a local build”To work on the add-on itself, install it from a checkout and point it at an image you built:
docker build -t ddev-sync:dev /path/to/ddev-synccd /your/projectddev add-on get /path/to/ddev-syncprintf 'DDEV_SYNC_IMAGE=ddev-sync\nDDEV_SYNC_VERSION=dev\n' >> .ddev/.env.localTo return to a published release, delete those two lines from .ddev/.env.local and run ddev add-on get NoiXdev/ddev-sync --version <release> again.
- Targets: hosts, layers, SSH and jump hosts.
- Deployer: read the connection from a Deployer setup.
- Syncing: step groups,
--steps, features and exit codes. - Frameworks: what each profile does and how far it is verified.