瀏覽代碼

use the directory where the vagrantfile is located for mounting

Nelson Chen 12 年之前
父節點
當前提交
43213dfc4a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Vagrantfile

+ 1 - 1
Vagrantfile

@@ -37,7 +37,7 @@ def v10(config)
   # Share an additional folder to the guest VM. The first argument is
   # Share an additional folder to the guest VM. The first argument is
   # an identifier, the second is the path on the guest to mount the
   # an identifier, the second is the path on the guest to mount the
   # folder, and the third is the path on the host to the actual folder.
   # folder, and the third is the path on the host to the actual folder.
-  config.vm.share_folder "v-data", "~/docker", "~/docker"
+  config.vm.share_folder "v-data", "~/docker", File.dirname(__FILE__)
 
 
   # Enable provisioning with Puppet stand alone.  Puppet manifests
   # Enable provisioning with Puppet stand alone.  Puppet manifests
   # are contained in a directory path relative to this Vagrantfile.
   # are contained in a directory path relative to this Vagrantfile.