Search code examples
macoslaravelvagrantlaravel-5homestead

Homestead Directory Missing After Reboot VM or Computer


Homestead.yaml

folders:
    - map: /Applications/MAMP/htdocs/code
      to:  /home/vagrant/code

  • Local directory : /Applications/MAMP/htdocs/code
  • Homestead directory : /home/vagrant/code

Everything is working perfectly beofore I reboot my computer, my homestead directory doesn't seem to sync with my local one anymore. They're missing completely.

  • I start my homestead VM , and SSH into it.
  • Then, I go into ~/code, and nothing there.

I tried to research into it, but people seem to have the same issue.

What is going on here ? How can I fix this ?


Solution

  • In my local homestead directory, I run vagrant reload, I got this

    enter image description here

    and it works 100% for me.


    vagrant reload : restarts vagrant machine, loads new Vagrantfile.