2

I edited the shared folder mapping rules in my Homestead.yaml file (C:\Users\username\.homestead). Then, I entered "vagrant halt" command to shut down vagrant. Then, I entered "vagrant up".

However, the edits that I made to the folder mapping are not reflected in the virtual environment. It's as if my changes were not made at all in the Homestead.yaml file.

How do I make the vagrant virtual environment reflect the changes that I made to the Homestead.yaml file?

Colin Hu
  • 189
  • 2
  • 14

3 Answers3

7

You should reload using

vagrant reload --provision
Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191
Paul Vidal
  • 403
  • 2
  • 6
1

Please do not vagrant destroy, there are many things involved. If your vagrant is still running do vagrant provision, if it is not do vagrant up --provision. If things don't work as expected, check your file mappings for mistakes.

Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191
Oladipo
  • 1,579
  • 3
  • 17
  • 33
  • To add to your answer, here is a definitive guide on homestead.yaml, just have a view to avoid many beginners errors. https://abbasharoon.me/homestead-yaml-explained-a-z/ – Metabolic Nov 01 '16 at 21:01
0

I should have used vagrant destroy instead of vagrant halt after updating my homestead.yaml file.

double-beep
  • 5,031
  • 17
  • 33
  • 41
Colin Hu
  • 189
  • 2
  • 14