vagrant - Vagrantfile: sync multiple folders
Asked Answered
K

1

8

I have tried the following to sync multiple folders from host to guest machine. But only one folder is getting synced, the later one.

config.vm.synced_folder "host/site1", "/var/www/site1" 

config.vm.synced_folder "host/site2", "/var/www/site2"
Karena answered 26/6, 2015 at 10:7 Comment(2)
Can we see your whole actual Vagrantfile, with the actuals folders?Zoosperm
Also, knowledge of your host and guest OS will be useful. Based on the tags I'm guessing your host is Windows, but please include a version (eg. 8.1, 10, etc)Detruncate
F
1

In newest virtualbox and vagrant versions this is improved and work without problems...

Fca answered 24/12, 2018 at 12:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.