October 2018
Beginner
232 pages
7h 52m
English
Another option is to upload a directory of files and folders from your host machine into your guest machine. This can be useful if you require multiple assets, such as images or configuration files, in a separate and managed way.
It's very similar to the file option when adding this option into our Vagrantfile:
Vagrant.configure("2") do |config| config.vm.provision "file", source: "secretfolder", destination: "$HOME/newsecretfolder" end
We set our source value to be a folder within the current Vagrant directory. You can specify an absolute path if the folder is located elsewhere on your host system.
The destination folder can use the $HOME variable to create the new folder in the home folder of our guest machine. This folder can ...
Read now
Unlock full access