Laravel Homestead共享文件夹丢失

时间:2015-01-29 22:03:51

标签: laravel vagrant homestead

我安装了Vagrant和Virtual Box。我正试图让Homestead工作。我的.yaml文件看起来像

---
ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: C:/Users/GiggleSquid/.ssh/id_rsa.pub

keys:
    - C:/Users/GiggleSquid/.ssh/id_rsa

folders:
    - map: D:/Code
      to: /home/vagrant/Code

sites:
    - map: 8Byte.app
      to: /home/vagrant/Code/Projects/8Byte/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

但每次我在Git Bash中运行vagrant up时,都会抛出错误

GiggleSquid@SQUID-RIG /d/Code/Homestead (master)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The host path of the shared folder is missing: ~/Code

有什么想法吗?

2 个答案:

答案 0 :(得分:1)

错误日志的答案完全相同。您的Windows环境中缺少您的代码文件夹。创建放置在Code

中的文件夹名称D:/

答案 1 :(得分:0)

您应该检查VirtualBox版本。 VirtualBox5.0版本不能使用shard文件夹。它正在开发VirtualBox 4.3版本。