Reviewboard is a code review framework that open source individuals can use for free, and it seems that more and more companies are starting to use Reviewboard as the company's Code review tool.
This morning tried a bit, the building process is very convenient and simple, according to the page prompts can be completed, more humane. For use in the company, support LDAP, direct import account, convenient.
The installation instructions are as follows:
https://www.reviewboard.org/docs/manual/2.5/admin/installation/linux/
1. Pre-installation, database and Web server, I chose Mysql+apache, Baidu how to install it.
MySQL:sudo apt-get install mysql-server
Apache:sudo Apt-get Install Apache2
2.sudo-i into the root account, without sudo each time, follow the page prompts to install the following tools:
Apt-get Install Python-setuptools
Apt-get Install Python-dev
Apt-get Install memcached
Easy_install python-memcached
Apt-get Install patch
Easy_install Reviewboard
Apt-get Install Python-mysqldb
3. Install the Code control components, you can choose according to their actual situation, I have all installed a convenient:
Apt-get Install CVS
Apt-get Install Git-core
Easy_install Mercurial
Easy_install P4pythoninstaller
Easy_install subvertpy
Apt-get Install Subversion PYTHON-SVN
4. After installing the above tools, configure MySQL and create databases and accounts:
Encoding mode:
[Client]default-character-set=utf8[mysqld]character-set-server=utf8
Create an account (note the following myuser and MyPassword are replaced with your own actual user name and password):
$ mysql-u root-pmysql> Create DATABASE reviewboard CHARACTER SET utf8;mysql> Create USER ' myuser ' @ ' localhost ' IDEN Tified by ' MyPassword ';mysql> GRANT all privileges on reviewboard.* to ' myuser ' @ ' localhost ';
5. Start the installation:
Rb-site install/var/www/reviews.example.com
In this middle to do a few options, according to your previous choice to fill, relatively simple, pay attention to look at the fill is good (domainname own test directly fill in the native IP).
And then you have to follow the prompts to configure (actually to chown than the following two more, see the final completion of the hint to add two additional):
$ chown-r www-data/var/www/reviews.example.com/htdocs/media/uploaded$ chown-r www-data/var/www/reviews.example.com /data
6. Then start configuring Apache:
$ cd/etc/apache2/sites-available$ cp/var/www/reviews.example.com/conf/apache-wsgi.conf reviews.example.com.conf$ Cd.. /sites-enabled$ ln-s./sites-available/reviews.example.com.conf.
Then open the browser, enter the previous domainname IP, you should be able to open the Reviewboard Web page, use the Administrator account password you entered in step 5 to log in.
Add your code repository in the configuration (you will be prompted to go to the Code warehouse and add a. reviewboardrc file, the contents of the file are also in Setup), create a code review group, add a new user, and include a code review email notification.
7. This time should not RBT this tool, still go to the Reviewboard website to download, should have provided the code warehouse can be directly downloaded:
git clone git://github.com/reviewboard/rbtools.git
Installation method Download the code inside, see install instructions.
8. Finally try to modify the code, RBT post, see if you can publish code review to the Web page, and the mailbox prompts all the colleagues in the group.
Very simple steps to complete, if there is any problem in the middle, bold but cautious look at the hint.
Because just a person to try, if the company used, it is recommended to access LDAP, and then make a LAN normal domainname, perfect, the company should have its own special mailbox.
Build Review Board code review site on Ubuntu