- Two-way synchronization
- Advantage: Performance, because all files reside in the container
- Disadvantage: Redundant data storage (not all files are synchronized)
- Available since ddev 1.18.
- The best integration of Mutagen in a development tool that I know of.
ddev config --mutagen-enabled=true
Configuration
Once Mutagen sync is enabled, the .ddev/mutagen/mutagen.yml file is created.
You can modify it as needed.
It is important to remove the #ddev-generated comment from the file; otherwise, the file will be overwritten every time the project starts!
#ddev-generated sync: defaults: mode: "two-way-resolved" stageMode: "neighboring" ignore: paths: - "/.git" - "/.tarballs" - "/.ddev/db_snapshots" - "/.ddev/.importdb*" - ".DS_Store" - ".idea" # - "/var" # vcs like .git can be ignored for safety, but then some # composer operations may fail if they use dev versions/git. # vcs: true symlink: mode: "posix-raw"