ReviewBoard安装配置

1.安装ReviewBoard

下载集成安装版:https://bitnami.com/stack/reviewboard/installer

[root@bogon ~]# cd /tmp
[root@bogon tmp]# chmod +x bitnami-reviewboard-2.5.10-1-linux-x64-installer.run
[root@bogon tmp]# ./bitnami-reviewboard-2.5.10-1-linux-x64-installer.run
Warning: In order to use Review Board with CVS, you will need the cvs package 
installed.
Press [Enter] to continue:
----------------------------------------------------------------------------
Welcome to the Bitnami Review Board Stack Setup Wizard.


----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want 
to install. Click Next when you are ready to continue.


Django : Y (Cannot be edited)


Review Board : Y (Cannot be edited)


Is the selection above correct? [Y/n]: y


----------------------------------------------------------------------------
Installation folder


Please, choose a folder to install Bitnami Review Board Stack


Select a folder [/opt/reviewboard-2.5.10-1]: /usr/reviewboard-2.5.10-1


----------------------------------------------------------------------------
Create Admin account


Bitnami Review Board Stack admin user creation


Email Address [user@example.com]: 


Login [user]: 


Password :
Please confirm your password :
Do you want to configure mail support? [y/N]: n


----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Review Board Stack on your 
computer.


Do you want to continue? [Y/n]: y


----------------------------------------------------------------------------
Please wait while Setup installs Bitnami Review Board Stack on your computer.


 Installing
 0% ______________ 50% ______________ 100%
 #########################################


----------------------------------------------------------------------------
Setup has finished installing Bitnami Review Board Stack on your computer.


Launch Bitnami Review Board Stack [Y/n]: y

修改端口
修改/usr/reviewboard-2.5.10-1/apache2/conf/httpd.conf中的Listen端口
修改/usr/reviewboard-2.5.10-1/apache2/conf/bitnami/bitnami.conf中的NameVirtualHost和VirtualHost _default_端口

开启防火墙端口
[root@bogon tmp]# firewall-cmd --zone=public --add-port=8085/tcp --permanent
[root@bogon tmp]# systemctl restart firewalld.service

启动apache服务
[root@bogon tmp]# /usr/reviewboard-2.5.10-1/apache2/bin/apachectl restart
启动mysql
[root@localhost bin]# ./mysqld_safe --user=root

Reviewboard官方文档:https://www.reviewboard.org/docs/manual/2.5/

2.安装RBTools

安装如下3个软件:
RBTools :ReviewBoard 命令行工具,用以客户端代码的RB管理
Diffutils:代码差异工具,用以生成diff文件

Subversion:SVN命令行客户端,用以提交diff文件到RB Server

设置环境变量:
C:ProgramFiles (x86)RBToolsin;C:Program Files (x86)GnuWin32in;C:Program Files(x86)Subversionin

进入cmd命令行,切换到本地svn checkout目录,如D:SVNTiMDM,运行rbt setup-repo,生成.reviewboardrc:
REVIEWBOARD_URL = "http://192.168.1.2:8085/reviewboard/"
REPOSITORY = "test"
REPOSITORY_TYPE = "svn"
USERNAME = "user"
PASSWORD = "1"
PUBLISH = "yes"

首次提交,3502为svn版本号:
rbt post 3502
再次提交,-r为review_id:
rbt post -r 5

Rbtools官方文档:https://www.reviewboard.org/docs/rbtools/0.7/

转载于:https://blog.csdn.net/yoyo328/article/details/77822561

原文地址:https://www.cnblogs.com/it-deepinmind/p/14384719.html