Information Technology Reference
In-Depth Information
# Guest OS (Ubuntu 12.04)
$ cd cgit
$ make
$ sudo make install CGIT_SCRIPT_PATH="/var/www"
Adjust cgit's configuration to suit your needs:
# Guest OS (Ubuntu 12.04)
$ sudo mv /var/www/cgit.cgi /usr/lib/cgi-bin
$ sudo touch /etc/cgirc
$ sudo sh -c "echo scan-path=/pub/git >> /etc/cgitrc"
$ sudo sh -c "echo
clone-prefix=ssh://vagrant@localhost:2222/pub/git >> /etc/
cgitrc"
And finally run your web browser and open the following URL:
http://localhost:8080/cgi-bin/cgit.cgi
You will see the web page shown in Figure 11-4 . Figure 11-5 presents the detailed
information about the repository 03-10. As you can see this time the page contains an
URL that allows you to clone the repository.
 
Search WWH ::




Custom Search