vaske
vaske

Reputation: 9552

Laravel Homestead - vm:The host path of the shared folder is missing: ~/Code on OSX Yosemite

I have brand new installation of laravel Homestead and my Homestead.yaml looks like this:

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: /srv/my_app
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/Code/public

databases:
    - homestead

When i try vagrant up: I get this error:

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

~/Code does not exists but it's specify to be other path in yaml file, seems like vagrant is keeping it somewhere in memory or something, any idea?

In case when I create ~/Code directory it works vagrant is up but code is not there because it sits on other location and mapping doesn't work at all, and I run into "No input file specified" issue which is obvious.

Upvotes: 2

Views: 791

Answers (1)

Luceos
Luceos

Reputation: 6730

You probably were editing the wrong file.

After running init for homestead a local configuration file is created in your home directory under:

~/.homestead/Homestead.yaml you will need to apply changes there for them to take effect.

Upvotes: 3

Related Questions