0
此拿起共享文件夾是homestead.yaml:流浪漢不從homestead.yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: C:\Code
to: /home/vagrant/Code
sites:
- map: rd-cp.dev
to: /home/vagrant/Code/rd-cp/public
databases:
- homestead
當我運行vagrant up
我得到一個虛擬機,但/home/vagrant/Code
是空的。目標文件夾存在,似乎沒有流浪者試圖映射到它。
啓動時說:
default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/me/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/0.5.0/virtualbox
沒有提到代碼。 任何想法我做錯了什麼?
在yaml文件中不是'C:/ Code'嗎?並在你的C盤下創建'Code'文件夾 –
對不起Frédéric我不明白你的意思?對C:\ Code的引用在homestead.yaml中存在,是的,C:\ Code存在 – gedq
然而,嘗試使用'C:/代碼' - 替換\/ –