My homestead
VM used to be in D:\www\Homestead
and all projects lived inside its folder. I want to update homestead
to the updated version and separate my projects to a new folder (e.g. D:\www\projects), so that I do not acidentally delete them when I need to delete Homestead folder.
-
Update Homestead box. From command prompt, run
vagrant box update
-
Create a new folder for Projects. (D:\www\projects)
-
Move all the projects to the new folder.
-
Back to command prompt and go to Homestead folder to destroy existing box.
cd D:\www\Homestead vagrant destroy
and Yes to destroy the existing box.
-
Delete everything in the Homestead folder or cloning Homestead repo to a new folder. See http://laravel.com/docs/4.2/homestead for reference.
-
Back to command prompt again and go into the updated Homestead folder and update the
Homestead.yml
to make it points to the new project folder.Homestead.yml
folders: - map: d:/www/projects to: /home/vagrant/Code
-
Save the file and now run
vagrant up
-
Don't forget to install
phpmyadmin
in the vm. See my old gist.