Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Created November 6, 2017 07:42
Show Gist options
  • Save yusufhm/633072d2f2b9d71b637e7905421a22d4 to your computer and use it in GitHub Desktop.
Save yusufhm/633072d2f2b9d71b637e7905421a22d4 to your computer and use it in GitHub Desktop.
BLT - additional synced folder for VM

Create a local config file in the project's box directory, called local.config.yml.

Copy the vagrant_synced_folders segment from box/config.yml and paste into box/local.config.yml:

vagrant_synced_folders:
  # Set the local_path for the first synced folder to `.`.
  - local_path: .
    destination: /var/www/my-project
    type: nfs

Below that, add a new synced folder configuration as follows:

  # Set keys folder.
  - local_path: local/keys
    destination: /var/www/keys
    type: rsync
    create: true
    options_override:
      owner: www-data
      group: www-data
      rsync__args: [
        "--chmod=Dugo=rwx,Fu=r",
      ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment