vagrant homestead 在win10下的同步运行问题
Vagrant的配置文件如下:
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
folders:
- map: D:\vagrant\Code
to: /home/vagrant/code
type: "rsync"
options:
rsync__args: ["--verbose", "--archive", "--delete", "-zz","--copy-links"]
rsync__exclude: ["node_modules"]
sites:
- map: shop.test
to: /home/vagrant/code/public
databases:
- homestead
- laravel-shop
features:
- mysql: true
- mariadb: false
- postgresql: false
- ohmyzsh: false
- webdriver: false
在win10下运行,启动git bash能正常vagrant up,连接上虚拟主机后ls ~/code可以显示与```yaml
D:\vagrant\Code
```php
composer create-project laravel/laravel laravel-shop --prefer-dist "7.*"
可以正常安装,安装完后ls 可以显示已经下载的文件,但是宿主机不显示,D:\vagrant\Code里没有任何变化。
是不是这里配置出错了,请高手指点:
folders:
- map: D:\vagrant\Code
to: /home/vagrant/code
type: "rsync"
options:
rsync__args: ["--verbose", "--archive", "--delete", "-zz","--copy-links"]
rsync__exclude: ["node_modules"]
推荐文章: