diff --git a/default.config.yml b/default.config.yml index 9e5255fa1..99d298328 100644 --- a/default.config.yml +++ b/default.config.yml @@ -21,8 +21,8 @@ vagrant_public_ip: "" # http://docs.drupalvm.com/en/latest/extras/syncing-folders/ for more info. vagrant_synced_folders: # The first synced folder will be used for the default Drupal installation, if - # build_makefile: is 'true'. - - local_path: ~/Sites/drupalvm + # build_makefile: is 'true'. By default it's set to the drupal-vm folder. + - local_path: . destination: /var/www/drupalvm type: nfs create: true diff --git a/docs/extras/behat.md b/docs/extras/behat.md index 40a39018d..904548a2d 100644 --- a/docs/extras/behat.md +++ b/docs/extras/behat.md @@ -27,7 +27,7 @@ _You can also include `drupal/drupal-extension` directly in your project's `comp ## Setting up Behat for your project -Using the default Drupal site as an example (it's installed in `/var/www/drupalvm/drupal` by default, and is shared to `~/Sites/drupalvm/drupal` on your host machine), the following steps will help you get your first Behat tests up and running! +Using the default Drupal site as an example (it's installed in `/var/www/drupalvm/drupal` by default, and is shared to the `./drupal` folder inside the drupal-vm directory on your host machine), the following steps will help you get your first Behat tests up and running! 1. Create a `behat.yml` file inside the docroot of your site (e.g. create this file alongside the rest of the Drupal codebase at `/var/www/drupalvm/drupal/behat.yml`), with the following contents: diff --git a/docs/extras/syncing-folders.md b/docs/extras/syncing-folders.md index e29b3e6b8..37a11c011 100644 --- a/docs/extras/syncing-folders.md +++ b/docs/extras/syncing-folders.md @@ -1,10 +1,10 @@ -You can share folders between your host computer and the VM in a variety of ways; the most commonly-used method is an NFS share. If you use Windows and encounter any problems with NFS, try switching to `smb`. The `default.config.yml` file contains an example `nfs` share that would sync the folder `~/Sites/drupalvm` on your host into the `/var/www/drupalvm` folder on Drupal VM. +You can share folders between your host computer and the VM in a variety of ways; the most commonly-used method is an NFS share. If you use Windows and encounter any problems with NFS, try switching to `smb`. The `default.config.yml` file contains an example `nfs` share that would sync the entire drupal-vm directory (configured as the relative path `.`) on your host into the `/var/www/drupalvm` folder on Virtual Machine. If you want to use a different synced folder method (e.g. `smb`), you can change `type` to: ```yaml vagrant_synced_folders: - - local_path: ~/Sites/drupalvm + - local_path: . destination: /var/www/drupalvm type: smb create: true @@ -54,7 +54,7 @@ If you are using rsync, it is advised to exclude certain directories so that the ```yaml vagrant_synced_folders: - - local_path: ~/Sites/drupalvm + - local_path: . destination: /var/www/drupalvm type: rsync create: true @@ -73,11 +73,11 @@ There are a number of issues people encounter with synced folders from time to t ### Using Native Synced Folders -You can use a native synced folder, which should work pretty flawlessly on any platform, but with a potential serious performance downside (compared to other synced folder methods). Just set `type` to `""`, and you can even put the synced folder inside the drupal-vm folder using a relative path, like: +You can use a native synced folder, which should work pretty flawlessly on any platform, but with a potential serious performance downside (compared to other synced folder methods). Just set `type` to `""`. ```yaml vagrant_synced_folders: - - local_path: docroot + - local_path: . destination: /var/www/docroot type: "" create: true diff --git a/docs/other/overriding-configurations.md b/docs/other/overriding-configurations.md index 12dfbaf72..43f698720 100644 --- a/docs/other/overriding-configurations.md +++ b/docs/other/overriding-configurations.md @@ -19,7 +19,7 @@ php_memory_limit: "512M" # Override the synced folders to use rsync instead of NFS. vagrant_synced_folders: - - local_path: ~/Sites/drupalvm + - local_path: . destination: /var/www/drupalvm type: rsync create: true