dashbrew
dashbrew copied to clipboard
Symlinking project folders in public/
I've tried symlinking a project folder from ~/Dev/myblog to public/myblog/ but it's not getting added during provisioning. I have .dashbrew and index.php files at the symlink's target. Are symlinked project folders supported by dashbrew?
OSX Yosemite 10.10.2
I'm trying to get the same thing working, no luck yet :( Is there any chance this might get supported? Would love to be able to just symlink new projects and provision :)
Tried both on OSX Yosemite and Ubuntu 14.10
It looks like the synced
folder type doesn't support symlinks, but I know rsync
does, so I am going to try changing:
config.vm.synced_folder "public/", "/var/www/", group: 'www-data', :owner => "vagrant"
in the Vagrantfile to use rsync
instead and see what happens!
Did you have any success? Care to share your possible solution? :)
Not yet! Will see if I can have a go at it tonight :)
Have tried various options in an attempt to get rsync to sync a symlinked folder's contents to the guest, but I've not been able to get it to follow a symlink in such a manner.
config.vm.synced_folder "public/", "/var/www/", group: 'www-data', :owner => "vagrant", type: "rsync", rsync__args: ["--verbose", "-rLKptgod", "-z"]
Try to create a folder with .dashboard, run provisioner and replace the folder with a symlink.
@phpid Not working for me, as soon as I symlink and provision the project is no longer detected and thrown out upon provisioning :(
- create folder
- provision
- replace folder by a link
Unfortunatelly that always results in a 403, no matter how generous I set the file permissions. After halting the machine and upping again it no longer detects the symlinked project and throws it out :(
It will NOT detect linked directories. Current implementation of the provisioner is looking for physical folders. You can either replace a folder by a link after provision or patch the provisioner to include linked folders.
Thanks @phpid, which synced/shared method should we use for this? (MacOS)
It really depends on a size of your project. I tried shared folders, NFS and Parallels provider due to a size of my project - 40K files and 12K directories. It does not matter for a small project. Otherwise, Parallels or VMWare will be the best choice.