My changes to Homestead.yaml are not reflected in the virtual environment after I vagrant up

爱⌒轻易说出口 提交于 2019-12-11 14:47:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!