Is it possible to symlink a directory from my project folder to my wp-content/themes folder which is in a Vagrant setup called chassis: https://github.com/Chassis/Chassis ?
I tried to symlink already using ln -s, but my wordpress installation did not recognize it as I did not see it in the Appearance > Themes admin panel. I’m wondering if it’s possible to do what I want to do. I’m assuming this is done all the time, but why isn’t it working for me?
3 Answers
You can add this to your VagrantFile for “shared folders:”
config.vm.synced_folder "/path/to/your/host/projectfolder/theme",
"/path/to/your/vagrant/wp-content/theme",
owner: 'www-data',
group: 'www-data',
mount_options: ["dmode=775", "fmode=664"]
http://docs.vagrantup.com/v2/synced-folders/basic_usage.html