我想laravel homestead
用于我的开发机器并成功安装了 virtualbox 和 vagrant,但是当我运行时出现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
该Homestead.yaml
文件如下所示:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
hhvm: true
databases:
- homestead
variables:
- key: APP_ENV
value: local
这些是默认设置,但它们并不适用于我的机器——我什至没有/home/vagrant
文件夹,也没有~/Code
任何可以看到的地方。我正在使用ubuntu 12.04
- 请您指出我应该如何配置我的设置,因为官方文档让我有点迷失了。