在Ubuntu 15.1上安装Laravel / Homestead时我无法正确映射路径以便运行" vagrant up"任何援助将不胜感激。
goldenos@GoldenOS:~/Homestead$ 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:~/home/goldenos/Homestead/projects
这是我的Homestead.yaml文件的配置
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/home/goldenos/Homestead/projects
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/goldenos/Homestead/projects
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
答案 0 :(得分:1)
据我所知~
是Linux中/home/username
的快捷方式,因此请删除路径中的~
或删除/home/username
部分。
使用:
folders:
- map: ~/Homestead/projects
to: /home/vagrant/Code
或
folders:
- map: /home/goldenos/Homestead/projects
to: /home/vagrant/Code