代码审查 ReviewBoard 在 Linux 安装

laofo · 2012年09月20日 · 1 次阅读

Ubuntu 下安装 ReviewBoard

yamazakei 转自:[url]http://bbs.scmroad.com/thread-25861-1-1.html/url][

1.ubuntu10.04 纯净系统 2.sudo apt-get install python-setuptools python-dev 3.sudo apt-get install memcached python-memcached 4.sudo apt-get install patch subversion python-svn 5.sudo easy_install http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7beta1-py2.7.egg 6.sudo easy_install mysql-python python-mysqldb libmysqld-dev libmysqlclient-dev 7.sudo apt-get install pylucene 8.sudo apt-get install apache2 libapache2-mod-wsgi 9.sudo a2enmod wsgi 10.sudo mkdir /var/www 11.sudo rb-site install /var/www/reviewboard · Domain = localhost · Root Path = / · Media URL = media/ · Database Type = mysql · Database Name = reviewboard · Database server = 10.10.38.173:3306 · Database username = reviewboard · Database password = reviewboard · Cache Type = memcache · Memcache Server = memcached://localhost:11211/ · Webserver = apache · Python loader = wsgi 12.sudo chown -R www-data /var/www/reviewboard/htdocs/media/uploaded 13.sudo chown -R www-data /var/www/reviewboard/htdocs/media/ext 14.sudo chown -R www-data /var/www/reviewboard/data 15.sudo apt-get install vim 16.sudo vim /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7beta1-py2.7.egg/reviewboard/reviews/views.py 在开头增加 import sys reload(sys) sys.setdefaultencoding('utf-8') 17.sudo cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/apache2/sites-available/reviewboard sudo a2dissite default sudo a2ensite reviewboard sudo /etc/init.d/apache2 restart 最后,RB 配合淘宝的 eclipse 插件,在代码入库前做好 pre-review,很有利于代码质量的提升

CentOS 下安装 ReviewBoard 作者:dcwang 转自:[url]http://bbs.scmroad.com/thread-25861-1-1.html/url][

#!/bin/sh #os information #Centos 6.2(x86_64)

#Installing Apache yum install httpd mod_wsgi

#Installing Mysql yum install mysql-server mysql-devel

#Installing Python Setuptools yum install python-setuptools

#Installing Python Development Headers yum install python-devel python-ldap

#Installing memcached yum install memcached easy_install python-memcached

#Installing patch yum install patch

#Installing Review Board easy_install ReviewBoard

#Installing Database Bindings easy_install mysql-python

#Installing Source Control Components yum install subversion subversion-devel wget http://dl.fedoraproject.org/pub/epel/6/x86_64/pysvn-1.7.6-1.el6.x86_64.rpm rpm -ivh pysvn-1.7.6-1.el6.x86_64.rpm

#Create reviewboard database mysql -uroot >create database reviewboard;

#Creating a Review Board Site mkdir -p /var/www/html/reviewboard chown -R apache.apache /var/www/html/reviewboard rb-site install /var/www/html/reviewboard

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

#Start apache /etc/init.d/httpd start elinks http://review..com***

需要 登录 后方可回复。