在Ubuntu上安装Laravel/Homestead

问题描述:

在Ubuntu 15.1上安装Laravel/Homestead时,我无法正确映射路径以便运行“vagrant up”,任何援助都将不胜感激。在Ubuntu上安装Laravel/Homestead

[email protected]:~/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

这似乎是一个不正确的路径:'地图:〜/家/ goldenos /泰德/ projects'。你可以导航到你的Ubuntu机器上的路径来验证它存在吗?如果不是,请尝试'〜/ Homestead/projects' –

据我所知~是Linux中的快捷方式/home/username所以要么删除~在您的路径或删除/home/username部分。

二者必选其一:

folders: 
    - map: ~/Homestead/projects 
    to: /home/vagrant/Code 

folders: 
    - map: /home/goldenos/Homestead/projects 
    to: /home/vagrant/Code