Symlinks on windows

I can’t get symlinks to work on windows. I’ve tried the volumes addon but it doesn’t seem to work, can’t remap any volumes.

Hi Robin,

Sorry for the trouble!

Symlinks don’t work with VirtualBox/Docker.

As far as the Volumes add-on goes, are you running into any errors or is it simply not working?

For now I have made some simple changes in the volumes addon to get it working.
I’m keeping themes and plugins as separate git repositories.

So here is what I did:

  • Everywhere it checked for “/Users” and “/Volumes”, I added a check for “/c/Users”
  • Made an empty folder with the same name as the theme “sites/site-name/app/public/wp-content/themes/theme-name”
  • Mapped the actual themefolder to that folder e.g. “projects/project-name/themes/theme-name”

Downsides:

  • only works with the C drive.
  • sites seem slower

I’m sure someone can come up with something better so I won’t be doing a pull request.

Github link

1 Like