Skip to content

Instantly share code, notes, and snippets.

@ratiw
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratiw/4d45f47049abf207cd47 to your computer and use it in GitHub Desktop.
Save ratiw/4d45f47049abf207cd47 to your computer and use it in GitHub Desktop.
Updating and Separating the Homestead folder and Project folder

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.

  1. Update Homestead box. From command prompt, run

    vagrant box update
    
  2. Create a new folder for Projects. (D:\www\projects)

  3. Move all the projects to the new folder.

  4. 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.

  5. Delete everything in the Homestead folder or cloning Homestead repo to a new folder. See http://laravel.com/docs/4.2/homestead for reference.

  6. 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
    
    
  7. Save the file and now run

    vagrant up
    
  8. Don't forget to install phpmyadmin in the vm. See my old gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment