Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

Commit

Permalink
[dev] config.yaml
Browse files Browse the repository at this point in the history
- add possibility to use multiple share folder via yaml
  • Loading branch information
Giuseppe Morelli committed Sep 28, 2016
1 parent 7aaf6bc commit 2a48749
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ Vagrant.configure("2") do |config|
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

config.vm.synced_folder vagrantconfig['host_project_folder'], vagrantconfig['vagrant_project_folder'], create: true, owner: "vagrant"
vagrantconfig['share'].each do |share|
config.vm.synced_folder share['folder']['host_folder'], share['folder']['host_folder'], create: true, owner: "vagrant"
end


#config.vm.synced_folder "/extra/folder", "/mnt/extra/folder"
#config.vm.synced_folder "/home/user/.ssh", "/home/vagrant/.ssh"

Expand Down
9 changes: 7 additions & 2 deletions config/config.yaml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ hostname: gmdev
vagrantbox_name: gmdev
private_ip: 192.168.250.10
ram: 2048
host_project_folder: /var/www/myproject.com
vagrant_project_folder: /var/www/myproject.com
share:
- folder:
host_folder: /var/www/myproject.com
vagrant_folder: /var/www/myproject.com
- folder:
host_folder: /mnt/extra/folder
vagrant_folder: /mnt/extra/folder

0 comments on commit 2a48749

Please sign in to comment.