1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix Vagrant failure to sync dangling symlinks

rsync 3.2.7 was failing for me on syncing folders with "symlink has no
referent" error. Specifically symlinks in public/ are dangling at sync
time, and that is expected as far as I can tell.

I lifted the fix from the commit below, which also provides more
references/context:

b1f4523e6d
This commit is contained in:
Filippo Giunchedi 2023-11-28 12:27:51 +01:00
parent 608f66f978
commit 40d3b80bd1

2
Vagrantfile vendored
View file

@ -168,7 +168,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if config.vm.networks.any? { |type, options| type == :private_network }
config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ['rw', 'actimeo=1']
else
config.vm.synced_folder ".", "/vagrant"
config.vm.synced_folder ".", "/vagrant", type: "rsync", create: true, rsync__args: ["--verbose", "--archive", "--delete", "-z"]
end
# Otherwise, you can access the site at http://localhost:3000 and http://localhost:4000 , http://localhost:8080