问题
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?
回答1:
You should reload using vagrant reload --provision
回答2:
I should have used "vagrant destroy" instead of "vagrant halt" after updating my homestead.yaml file. Silly me
回答3:
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.
来源:https://stackoverflow.com/questions/38947789/my-changes-to-homestead-yaml-are-not-reflected-in-the-virtual-environment-after