Information Technology Reference
In-Depth Information
is immune to changed port number. It will always connect you with the machine started
from the current server. You can check the ssh settings with:
$ vagrant ssh-config
But some other commands, such as scp, need to be adjusted.
11-7. Hosting git repositories over http
Problem
You wish to set up hosting with public read-only access to the repository. By public
read-only access we mean that everyone can clone and fetch from the repository. You
want to use http protocol.
Solution
Initialize a new virtual machine:
# Host OS (e.g., Windows, Linux, OS X)
$ cd git-recipes
$ mkdir 11-07
$ cd 11-07
Create the Vagrantfile shown in Listing 11-6 . The path to git-recipes needs to be ad-
justed to suit your system.
Listing 11-6. Vagrantfile in Recipe 11-6
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = " http://files.vagrantup.com/
precise32.box "
config.vm.synced_folder "c:\\some\\where\\git-recipes",
 
 
Search WWH ::




Custom Search