代碼review工具之一Review Board

Installing Review Board on MacOS Xpython

This guide will help get you started with Review Board on MacOS X. It assumes you already have Apache installed, are familiar with the terminal, are using a modern version of MacOS X with Python 2.7, and have set up a database server (MySQL or PostgreSQL).mysql

Please note that while Review Board works fine on MacOS X, we do recommend installing on Linux for production use.git

Install Homebrew. This makes it easy to install some of our dependencies.github

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew doctor
This will prompt you for your user password, and then ask you to install the Xcode Command Line Developer Tools, which you will need.sql

Install memcached, and configure it to run on startup.ruby

brew install memcached
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
Optionally install support for the revision control systems you need:curl

brew install cvs
sudo easy_install mercurial P4PythonInstaller
If you want Subversion support, you will need to download the latest disk image for PySVN that's compatible with the version of Subversion on your server.ide

Install support for your database.memcached

If you're using MySQL, please note that the bindings can be tricky to install on MacOS X. If you have problems with the command below, See this answer on StackOverflow for some tips.post

sudo brew install python-mysqldb
If you're using PostgreSQL:

sudo easy_install psycopg2
Now you can install Review Board!

sudo easy_install ReviewBoard
Follow our guide to creating a Review Board site.
For a more detailed guide to all the dependencies, including additional optional dependencies not mentioned here, please see our complete installation instructions.

You can also try the third-party Review Board Installer, provided by Bitnami. If you use this installer, any support issus with Review Board should be raised with Bitnami rather than the Review Board project.

Installing RBTools on Developer Machines

RBTools is our suite of command line tools that makes it easy to work with Review Board and write scripts using our API. It's compatible with Linux, Windows, and MacOS X.

Developers will primarily work with rbt post. This is used to post new review requests from any in-development code, and will update existing review requests with any new code changes.

To get started, install RBTools and configure it for your repositories.

相關文章
相關標籤/搜索