CentOS安装Review board - Go语言中文社区

CentOS安装Review board


Review Board起源于VMware的一些开发者。它基于Django,你可以把它安装在自己的服务器上,工作流和Rietveld极为类似。令人高兴的是它提 供了在diffs里进行语法彩色编码,使得代码阅读变得简便。此外,它还实现了基于Lucene的搜索来帮助管理较大的diffs组。

Review Board在审查补丁(Patch)方面表现完美。一个叫做“提交审查”的工具被用来和SCM系统进行连接(当前支持SVN、CVS、Perforce、Git和Mercurial等),可以允许你请求一个将被提交的修改的审查。用户基础页面将这个过程描述如下:

你在本地检出的代码上做了些可怕的修改。
你通过公布diff、编写描述和选择一些审查者来创建一个审查请求。
你在审查请求中点击“发布”并等待你的审查者看到它。
其他人看了你的审查请求,说道“这太可怕了,除非什么东西坏掉了。”
你根据他们的评论更新了你的代码。
你公布了更新后的diff,以及对他们评论的解答以指明你修改了什么(或者你要说明为什么你不打算按照他们的建议修改代码)。
大家看了你更新后的代码,并请你继续。
你将修改提交到仓库中。
你在审查请求中点击“设置为已提交”来从其他人的面板中移除你的审查请求。

安装Review board

ReviewBoard支持的数据库有mysql, postgresql, sqllite3,web服务器Apache + mod_wsgi, fastcgilighttpd + fastcgi

yum install git svn 
yum install mysql-server mysql 
yum install httpd mod_wsgi 
yum install python-setuptools python-devel memcached patch
yum install ReviewBoard
#安装RBTools
easy_install -U RBTools
#或者
git clone git://github.com/reviewboard/rbtools.git   
cd rbtools  
sudo python setup.py install   

创建mysql数据库

在创建数据库之前,确保使用utf-8编码格式, vi /etc/my.cnf

[client]
default-character-set=utf8

[mysqld]
character-set-server=utf8

完成修改后启动或重启mysqlservice mysqld start
创建reviewboard数据库和用户

mysql -u root -p
mysql> CREATE DATABASE reviewboard CHARACTER SET utf8;
mysql> CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON reviewboard.* to 'username'@'localhost';

初始化ReviewBoard

rb-site install /var/www/reviews.example.com
* What database type will you be using?

    You can type either the name or the number from the list below.

    (1) mysql
    (2) postgresql
    (3) sqlite3 (not supported for production use)

Database Type: mysql
* What cache mechanism should be used?

    memcached is strongly recommended. Use it unless you have a good
    reason not to.

    You can type either the name or the number from the list below.

    (1) memcached (recommended)
    (2) file

Cache Type: memcached
* What web server will you be using?

    You can type either the name or the number from the list below.

    (1) apache
    (2) lighttpd

Web Server: 1
* What Python loader module will you be using?

    Based on our experiences, we recommend using wsgi with Review
    Board.

    You can type either the name or the number from the list below.

    (1) wsgi (recommended)
    (2) fastcgi
    (3) modpython (no longer supported)

Python Loader: wsgi

#更改目录的用户为apache
chown -R apache /var/www/reviews.example.com/htdocs/media
chown -R apache /var/www/reviews.example.com/data
#由于apache-wsgi.conf是自动生成的,所以软连接到conf.d下
cd /etc/httpd/conf.d
ln -s /var/www/reviews.example.com/conf/apache-wsgi.conf review-wsgi.conf

重启httpd服务

service httpd restart
#防火墙开放80端口
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

这里写图片描述

参照:

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/chenjh213/article/details/49815765
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-01 20:00:28
  • 阅读 ( 1236 )
  • 分类:Linux

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢