gitweb在ubuntu上的配置
来源:互联网 发布:mysql事务实现原理 编辑:程序博客网 时间:2024/05/18 04:54
首先安装:
$ sudo apt-get install gitweb
gitweb.cgi 脚本安装在 /usr/lib/cgi-bin/ 中,该目录为默认 ubuntu 上 apache2 的 cgi-bin 目录。所以,打开:
http://localhost/cgi-bin/gitweb.cgi
默认没有 css 加载,把 gitweb 要用的静态文件连接到 DocumentRoot 下:
$ cd /var/www/
$ sudo ln -s /usr/share/gitweb/* .
修改配置:
$ sudo vi /etc/gitweb.conf
将 $projectroot 改为存放各个 .git 的目录。保存后刷新浏览器。
Related Posts
如果没有找到项目,你需要将projectroot/*.git 的属性改为755,让apache用户有可读权限。可以只改你需要让别人通过web访问的那个git。
http://localhost/cgi-bin/gitweb.cgi
/etc/gitweb.conf 内容:
# path to git projects (<project>.git)
$projectroot = "/var/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 = $projectroot;
# stylesheet to use
$stylesheet = "/gitweb/gitweb.css";
# logo to use
$logo = "/gitweb/git-logo.png";
# the 'favicon'
$ sudo apt-get install gitweb
gitweb.cgi 脚本安装在 /usr/lib/cgi-bin/ 中,该目录为默认 ubuntu 上 apache2 的 cgi-bin 目录。所以,打开:
http://localhost/cgi-bin/gitweb.cgi
默认没有 css 加载,把 gitweb 要用的静态文件连接到 DocumentRoot 下:
$ cd /var/www/
$ sudo ln -s /usr/share/gitweb/* .
修改配置:
$ sudo vi /etc/gitweb.conf
将 $projectroot 改为存放各个 .git 的目录。保存后刷新浏览器。
Related Posts
如果没有找到项目,你需要将projectroot/*.git 的属性改为755,让apache用户有可读权限。可以只改你需要让别人通过web访问的那个git。
http://localhost/cgi-bin/gitweb.cgi
/etc/gitweb.conf 内容:
# path to git projects (<project>.git)
$projectroot = "/var/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 = $projectroot;
# stylesheet to use
$stylesheet = "/gitweb/gitweb.css";
# logo to use
$logo = "/gitweb/git-logo.png";
# the 'favicon'
$favicon = "/gitweb/git-favicon.png";
- gitweb在ubuntu上的配置
- 在Ubuntu 14.04上配置 gitweb
- Ubuntu上搭建并配置gitweb
- 在ubuntu上搭建gitweb+apache2
- Ubuntu gitweb 安装配置
- ubuntu 14.10+gitweb配置
- Gerrit code review与GitWeb在window7环境上的安装配置
- Ubuntu 上Gitweb安装指南
- ubuntu 上安装gitweb(用虚拟机的方式)
- Ubuntu系统上搭建gitweb(可视化)服务器
- Ubuntu 14.04 配置 gitosis 和 gitweb
- 在window上集成Gitweb和Gerrit
- gitweb配置
- gitweb配置
- jetty+nginx在ubuntu上的配置
- Golang 在ubuntu上的配置
- JDK在ubuntu上的环境配置
- clang 在Ubuntu上的配置
- 关于 图像 的基础知识
- backbone.js
- Linux 2.6 驱动模板
- MFC六大关键技术之(二)——运行时类型识别(RTTI)
- 中有关23个经典设计模式的示例
- gitweb在ubuntu上的配置
- 确保真正的线程安全——微软为什么不提供线程安全库
- robotium无法截取到控件的问题
- 解决CSS中float:left后需要clear:both清空的繁琐步骤
- Struts2之两个Action传值和不传值的struts.xml文件配置
- 用java统计网站在线人数
- 栈的两种C++实现
- 堆的详解和使用
- struts2 类型转换