While installing Laravel/Homestead on Ubuntu 15.1 I can't get my path mapped correctly in order to run "vagrant up" any assistance would be greatly appreciated.
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
This is the configuration of my Homestead.yaml file
---
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
As far as I know ~
is the shortcut for /home/username
in Linux so either remove the ~
in your path or remove the /home/username
part.
Use either:
folders:
- map: ~/Homestead/projects
to: /home/vagrant/Code
or
folders:
- map: /home/goldenos/Homestead/projects
to: /home/vagrant/Code
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.