Inside my homestead virtual machine, I ran laravel new test
. Now I got a fresh laravel project in my homestead virtual machine.
Then I configured the Homestead.yaml
:
- map: ~/work/test # an empty dirctory
to: /home/vagrant/test
Finally, I ran vagrant reload --provision
.
Oops, I found home/vagrant/test
is an empty directory now!
It seems vagrant only sync data from Host Machine to Homestead Virtual Machine, and I just want to create a project inside a Homestead Virtual Machine, then sync it to Homestead Virtual Machine.
Is there any way I can achieve that?