Seeing your changes
For performance reasons, we use rsync to share the directories between your host machine and the VM. In order to make your code changes appear on the site, you will need to run
vagrant rsync from the vagrant directory. You may also need to run the
drush cc all command to clear the Drupal cache sometimes, especially if you add or modify a hook.
Stopping and restarting the VM
If you need to temporarily turn off the VM, you can do it with
vagrant halt from your vagrant directory.
vagrant up will bring it back online.
Accessing the machine using SSH
If you want to run commands directly on the machine, you can run
vagrant ssh from the vagrant directory.
Restarting a failed build
If the build stalls or fails for some reason, you can cancel the build with CTRL-C, close and reopen the window, browse back to the same directory and run
Fixing a corrupted installation
Sometimes the Vagrant build can become corrupted. When this happens, you can run these commands to rebuild the Vagrant box. Note that you will lose your code if you do this, so we recommend you work in a topic branch and push it to the server before you execute these commands.
# Remove the virtual machine
# Recreate the virtual machine
# Resync the folders