Ubuntu上搭建并配置gitweb
来源:互联网 发布:林书豪上赛季数据 编辑:程序博客网 时间:2024/05/03 15:55
装好了git server,就需要开通gitweb,方便代码查看。
OS: Ubuntu 12.04 LTS 64bit.
以下是安装纪录。
sudo apt-getinstall gitweb apache2
cd /var/www
sudo ln -s /usr/share/gitweb/* .
修改配置文件/etc/gitweb.conf:
sudo vi /etc/gitweb.conf
把$projectroot改为存放git的目录。在我这里是/home/git/repositories.把$projectroot改为/etc/gitweb-list
例:
# path to git projects (<project>.git)
$projectroot = "/home/git/repositories";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = "/etc/gitweb-list";
# stylesheet to use
$stylesheet = "/css/gitweb/gitweb.css";
# logo to use
$logo = "/css/gitweb/git-logo.png";
# the 'favicon'
$favicon = "/css/gitweb/git-favicon.png";
$feature{'snapshot'}{'default'} = [0];
增加/etc/gitweb-list文件,里面的内容是需要显示的git库名及owner,例
testing.git Tony
test2.git Jack
...
由于权限管理用的是gitolite,还需要如下改动,否则将没有权限访问。
sudo usermod -a -G git www-data
sudo chmod g+r /home/git/projects.list
sudo service apache2 restart
同时需要在git配置文件中,把gitweb帐号加入,如下(以testing库为例,其它库同上):
repo testing
RW+= @all
R =gitweb
完成后用游览器打开 http://192.168.0.xx/gitweb,应该可以看到正常的库列表了。
- Ubuntu上搭建并配置gitweb
- 在ubuntu上搭建gitweb+apache2
- Ubuntu系统上搭建gitweb(可视化)服务器
- gitweb在ubuntu上的配置
- 在Ubuntu 14.04上配置 gitweb
- Ubuntu gitweb 安装配置
- ubuntu 14.10+gitweb配置
- Ubuntu Nginx 搭建 Gitweb服务器
- Ubuntu 上Gitweb安装指南
- ubuntu apache服务器和gitweb服务器搭建
- Ubuntu搭建Git服务器和GitWeb
- Ubuntu 14.04 配置 gitosis 和 gitweb
- gitweb搭建
- gitweb搭建
- gitweb配置
- gitweb配置
- ubuntu 上安装gitweb(用虚拟机的方式)
- ubuntu 搭建LAMP环境并配置
- iOS多线程小结
- 安装第三方模块
- Codeforces 582B Once Again... 【LIS变形】
- 第六届河南省程序设计大赛
- 嵌入式开发板的学习步骤-基于iTOP-4412开发板
- Ubuntu上搭建并配置gitweb
- 你真的了解Trump?来看看这几个故事
- bzoj 1251: 序列终结者(splay)
- Cannot run program "/home/user/Android/Sdk/build-tools/23.0.2/aapt": error=2 No such file or directo
- 通过eclipse生成doc
- Shader 坐标转换
- 圣杯布局的实现过程
- final关键字用于String时的一个问题
- block