Update application directory in homestead VM
Laravel provides a great vagrant package “Homestead”. Its a great tool for running application locally across the different machines without worrying about software requirement.
But recently, I came across a problem of updating my application directory in a default configuration and my site stopped to work. I know that could have been solved with the help of ‘vagrant –provision’, but I’d like to explore other options.
Finally, I found that I need to update nginx sites inside my Homestead box.
I have listed below steps for updating your application folder.
Step 1 : Logon to homestead machine
Step 2 : Navigate to ngnix available sites location
Step 3 : Edit your application
Step 4 : Update your root location
You will see ‘root’ variable in your application configuration, you’ll need to update it.
Please note that, this location should be your VM location.
Step 5 : Important!! Restart nginx
I hope you enjoyed this.