Apache+svn+review Board Code Review Server Setup process

Source: Internet
Author: User

Apache+svn+review Board Code Review Server Setup process

First, Introduction

Code Review ( Codereview) Not only improves quality, but also is an excellent tool for knowledge sharing and mentoring. Reviewboard is an excellent, open-source WEB-based code review tool.

Ii. Preparatory work2.1, install dependent packages
Yum-y install gcc gcc-c++ make cmake autoconfautomake libffi libffi-devel ncurses* bison* zlib* expat* openssl* apr* Neon *


2.2, installationApache
Yum-y Install httpd Httpd-devel


2.3, installationMySQL
Yum-y install MySQL mysql-server mysql-devel mysql-pythonservice mysqld Start


Login MySQL Create reviewboard database and reviewboard user

Mysql–uroot–p>create database Reviewboard Default CharSet utf8collate utf8_general_ci;>grant all on reviewboard.* To ' reviewboard ' @ ' localhost ' identified by ' Reviewboard ';


2.4, installationmemcached
Yum-y Install memcached python-memcachedservice memcached start


2.5, installationPatch
Yum-y Install patch


2.6, installationPython
Yum-y Install Python Python-devel


2.7, installationpython-subvertpy pysvn

if the Python version is 2.6(centos6.x), it can be downloaded using the EPEL yum source

(1), RPM-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum-y Installpython-subvertpy PYSVN

(Install the Yum source EPEL Red Hat Enterprise Library,the CentOS default yum Source Library does not have pysvn)


(2), yum--enablerepo=epel install pysvnpython-subvertpy

(Specify the EPEL yum source, download pysvn,python-subvertpy)

centos7.x Installing the EPEL source

rpm-ivhhttp://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm


Three, start the installation3.1, installationEasy_install

Distribute has been merged with Setuptools since the 0.7 version , so remove the old version (setuptools)Easy_install first.

First step: Delete Easy_install

Rm-f/usr/bin/easy_install*rm-f/usr/local/bin/easy_install*


Step two: Install distribute

wget Https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.pypython Distribute_ Setup.pyrm distribute_setup.py


3.2, installationReviewboard
Easy_install Reviewboardrb-site Install/var/www/html/reviewboard


Configure the following as appropriate

Domain name:192.168.2.41root Path [/]:D atabase type:mysqldatabase Name [Reviewboard]:D atabase Server [localhost]:D Atabase username:reviewboarddatabase password:confirm Database password:memcache Server [Localhost:11211]:username [ Admin]: adminpassword:confirm password:e-mail Address: [Email protected]company/organization Name (optional): Unilifemediaallow us to collect support data? [y/n]:


3.3, ConfigurationReviewboardDirectory Permissions
Chown-r Apache.apache/var/www/html/reviewboard/htdocs/chown-r Apache.apache/var/www/html/reviewboard/data


3.4, ConfigurationReviewboard

put the apache-wsgi.conf configuration file under Apache 's conf.d directory

cp/var/www/html/reviewboard/conf/apache-wsgi.conf/etc/httpd/conf.d/


Configure the domain name or IP that allows access to Reviewboard

vi/var/www/html/reviewboard/conf/settings_local.py

Allowed_hosts =[' 192.168.2.41 ', ' codereviewboard.unilifemedia.com ']


Restart Apache

Service httpd Restart


Four, background configuration

Login:http://192.168.2.41/

Enter the admin password you just configured

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/97/03/wKioL1kn1IyjMoaEAAB5dL8tMwk969.png-wh_500x0-wm_ 3-wmp_4-s_1260823796.png "title=" 1.png "alt=" Wkiol1kn1iyjmoaeaab5dl8tmwk969.png-wh_50 "/>

4.1, go to admin background

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/97/03/wKioL1kn1JyT-1JLAABrM7UUsz0383.png-wh_500x0-wm_ 3-wmp_4-s_987756297.png "title=" 2.png "alt=" Wkiol1kn1jyt-1jlaabrm7uusz0383.png-wh_50 "/>

4.2, configure send mail

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/97/03/wKioL1kn1KzRefidAAEhZiwcHMw787.png-wh_500x0-wm_ 3-wmp_4-s_97596839.png "title=" 3.png "alt=" Wkiol1kn1kzrefidaaehziwchmw787.png-wh_50 "/>

4.3, configuring the Audit code warehouse

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/97/03/wKioL1kn1MChnq8NAAD_aLHE60Q480.png-wh_500x0-wm_ 3-wmp_4-s_2666117565.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1kn1mchnq8naad_alhe60q480.png-wh_50 "/>


Enter a name, SVN repository address, user name password.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/97/02/wKiom1kn1O6BlxLrAACcnurQJNk106.png-wh_500x0-wm_ 3-wmp_4-s_1887412731.png "title=" 5.png "alt=" Wkiom1kn1o6blxlraaccnurqjnk106.png-wh_50 "/>

4.4, add Users

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/97/02/wKiom1kn1QOh5tt0AAD4GDtMdf4482.png-wh_500x0-wm_ 3-wmp_4-s_1998124036.png "style=" Float:none; "title=" 6.png "alt=" Wkiom1kn1qoh5tt0aad4gdtmdf4482.png-wh_50 "/>

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/97/03/wKioL1kn1QPQQ8gHAAE-uTKmUPQ457.png-wh_500x0-wm_ 3-wmp_4-s_2126276280.png "style=" Float:none; "title=" 7.png "alt=" Wkiol1kn1qpqq8ghaae-utkmupq457.png-wh_50 "/>



Apache+svn+review Board Code Review Server Setup process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.