Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions default.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/extras/behat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
10 changes: 5 additions & 5 deletions docs/extras/syncing-folders.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/other/overriding-configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down