Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Symlinking project folders in public/ #27

Open
wdmtech opened this issue Mar 27, 2015 · 12 comments
Open

Symlinking project folders in public/ #27

wdmtech opened this issue Mar 27, 2015 · 12 comments

Comments

@wdmtech
Copy link

wdmtech commented Mar 27, 2015

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

@te-gpm
Copy link

te-gpm commented Mar 31, 2015

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

@wdmtech
Copy link
Author

wdmtech commented Apr 1, 2015

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!

@te-gpm
Copy link

te-gpm commented Apr 9, 2015

Did you have any success? Care to share your possible solution? :)

@wdmtech
Copy link
Author

wdmtech commented Apr 9, 2015

Not yet! Will see if I can have a go at it tonight :)

@wdmtech
Copy link
Author

wdmtech commented Apr 10, 2015

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"]

@vkvasnytsky
Copy link

Try to create a folder with .dashboard, run provisioner and replace the folder with a symlink.

@te-gpm
Copy link

te-gpm commented Apr 13, 2015

@phpid Not working for me, as soon as I symlink and provision the project is no longer detected and thrown out upon provisioning :(

@vkvasnytsky
Copy link

  1. create folder
  2. provision
  3. replace folder by a link

@te-gpm
Copy link

te-gpm commented Apr 13, 2015

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 :(

@vkvasnytsky
Copy link

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.

@wdmtech
Copy link
Author

wdmtech commented Apr 17, 2015

Thanks @phpid, which synced/shared method should we use for this? (MacOS)

@vkvasnytsky
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants