Information Technology Reference
In-Depth Information
Hint
If you want to push to
/var/www/03-01.git
you have to use the SSH
protocol described in Recipe 11-4 or the local protocol described in Recipe 10-2.
11-8. Using Gitweb CGI application
Problem
You want to install and run the web application named Gitweb. This is a CGI script
written in Perl, which offers an intuitive web interface to git repositories. You want al-
low browsing all the repositories under the
git-recipes
directory.
Solution
Initialize a new virtual machine:
# Host OS (e.g., Windows, Linux, OS X)
$ cd git-recipes
$ mkdir 11-08
$ cd 11-08
Create the Vagrantfile presented in
Listing 11-7
.
If you work on the Unix-like sys-
tem remember to change the path to a
git-recipes
directory.
Listing 11-7.
The Vagrantfile from Recipe 11-8 for Windows
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "
http://files.vagrantup.com/
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.synced_folder "c:\\some\\where\\git-recipes",
"/pub/git"
end