review board 安装小结

本文关键字: review board, code review,  ubuntu, 安装,配置

局限性:只是实现了request,review等功能里最基本的内容,可以说只是一个原型测试,很多地方未测试和完善; 凭记忆写下,有些地方可能记不全了。

这一周在ubuntu上安装了review board,把一些经验总结一下备忘,作个阶段性小结。

review board的简介

本来想使用google的rietveld,后来在stackoverflow上有人介绍reviewboard,所以就转而使用reviewboard。原因有几个:1)reviewboard doesn't need google account;2)review board support better post-preview than rietveld. 3) reviewboard is older than rietvele, seems more stable 4) review board supports more VCS(version control system)

They have same functions: 1) the same review working flows: new request --> review --> submmit  2) use  web server 3) well supported on ubuntu 4) widely used

So, I select review board.

安装方法和注意事项

you can get most lots of help from http://www.reviewboard.org

1. install review board dependencies

install database, python, apache2,memcached,etc. please refer to Adminstator guide

*sqlite is just for demo, it doesn't well support concurrent request

*memcached is a memory tool for speeding server access


2. install review board

$ easy_install ReviewBoard

* easy_install is a python facilitate-install tool.


3. create and config review board web sites

$ rb-site install /var/www/reviews.example.com
Attention1:

If you’re using Apache, we highly recommend using mod_wsgi. fastcgihas been known to have memory leak issues with Review Board, andmod_python is no longer developed or shipped with Apache.

We also strongly recommend installing and using memcached. This willgreatly improve performance of your Review Board installation. Ifpossible, put this on a server with a lot of RAM.

Attention2 change permission:

$ chown -R www-data /var/www/reviews.example.com/htdocs/media/uploaded
$ chown -R www-data /var/www/reviews.example.com/data

Attention3 ubuntu apache2 knowledge:

ubuntu apache2 is install at /etc/apache2

apache2.conf httpd.conf are tool main configure files.

Configure files under sites-availabe are virtual host configure files.

Files under sites-enable softly link to files under sites-available

After modifying configure files, you can restart apache2 by   sudo /etc/init.d/apache2 restart

Add below two lines to httpd.conf

ServerName yyytest
DocumentRoot /var/www/reviews.example.com/htdocs

Then input 127.0.0.1 in browser you can see Review board page. Input 127.0.0.1/admin you can see Admin page.


4. config review board

add users, you can add email for a user, the user default belows to review group

config email : email server: smtp.huaqin.com , port is 25, don't add user and password


5. new request

First add your working repository by admin. I add a git VCS, input the local whole git directory "

 /home/yaoyangyong/gittest/.git
"

You can get diff file by "git diff > diff-file"

If you can't edit in the "new request " pages, please try other browser like chrome.

After editting, you can publish.

6. review

Reviewer will see the requesting mail.

Without DNS, the reviewer client can access with IP directory, or access with domain after modifying host file(for windows, C:/window/system32/driver/etc/host)

After review , publish your comments.


需要改进的地方

1. 服务器只能以127.0.0.1访问,无法通过域名访问

2.客户端只能通过IP访问,无法通过域名访问

3.没有尝试链接svn

4.没有尝试post-review

5.目前的sqlite只能供demo使用,还需要尝试安装mysql

6. firefox还不能编辑,而公司内部大部分使用ff

7. 希望实现review, 代码提交的一体化,使得review过程更有效


工作收获:

1. study sofeware tutorial,practise english reading

2.try & think, find others' support

3. know basic apache config, email configuration


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值