Hi Adrian, In the line you posted there is no double quote after public_html. Could it be that?
I hope it helps, Debo On Thursday, 30 October 2014, Adrian Mak <makkaich...@gmail.com> wrote: > My host platform is Windows > I added > config.vm.synced_folder "adrian", "/home/adrian/public_html, owner: > "adrian" > in Vagrantfile > > when vagrant up, it return an syntax error > > There is a syntax error in the following Vagrantfile. The syntax error > message is reproduced below for convenience: > > D:/lxc/Vagrantfile:45: syntax error, unexpected tIDENTIFIER, expecting > keyword_end > owner: "adrian" > ^ > > On Thursday, October 30, 2014 11:11:00 AM UTC+8, Alvaro Miranda Aguilera > wrote: >> >> hello, you can setup multiples lines for that. >> >> as shared folders: >> >> https://docs.vagrantup.com/v2/synced-folders/basic_usage.html >> >> config.vm.synced_folder "src/", "/srv/website" >> >> >> config.vm.synced_folder "/site1/", "/home/site1" >> config.vm.synced_folder "/site2/", "/home/site2" >> >> but bear in mind that /home is reserved for home users, so better use a >> different mount point, >> >> If you have those users, and are site1 and site2, then you should mount >> as >> >> config.vm.synced_folder "src/", "/srv/website", owner: "root", group: "root" >> >> like: >> config.vm.synced_folder "/site1/", "/home/site1", owner: "site1", group: >> "site1" >> config.vm.synced_folder "/site2/", "/home/site2", owner: "site2", group: >> "site2" >> >> if your OS is unix based (linux or OSX for example), and the guest also >> is, you can look into nfs or rsync. >> >> Hope this helps, >> Alvaro. >> >> >> On Thu, Oct 30, 2014 at 2:50 PM, Adrian Mak <makka...@gmail.com> wrote: >> >>> For example >>> >>> host folder -> vagrant vm >>> /site1 -> /home/site1 >>> /site2 -> /home/site2 >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Vagrant" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to vagrant-up+...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','vagrant-up%2bunsubscr...@googlegroups.com');> > . > For more options, visit https://groups.google.com/d/optout. > -- Sent from my iPhone -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.