CODE 为每个项目设置了三个角色,分为 owner(有全部权限)、committer(有 push 和 merge 权限)、member。review 机制根据项目的不同设置了不同的规则,如产品线级别的、需要对外发布的项目,基础库等项目都需要经过严格的 review.具有特色的勋章系统主要跟代码提交相关,例如给开源项目发过 Patch 并被 merge 会有相应的徽章。
项目地址:https://github.com/douban/code
-------------------------------------------------
CODE
Dependency
- libmc https://github.com/douban/libmc
- Python 2.7+
- pip >= 1.4.1
Vagrant Installation(Recommended)
$cd code
$vagrant up
$vagrant ssh
# In ubuntu. we use `supervisor` to monitor and control CODE and other services.
#You just go web http://localhost:8200
Quick Installation
Currently supports following systems:
- gentoo
- ubuntu/debian
- centos/redhat/fedora
- opensuse
- archlinux
You only need to execute:
$bash <(curl -s https://raw.githubusercontent.com/douban/code/master/scripts/install_code.sh)
Then install & run supervisor
to monitor and control all services of code.
pip install supervisor
sudo wget -O /etc/init.d/supervisor https://raw.githubusercontent.com/Supervisor/initscripts/master/ubuntu
sudo chmod +x /etc/init.d/supervisor
sudo cp scripts/supervisord.conf /etc/supervisord.conf
sudo cp scripts/code.conf /etc/supervisor/conf.d/code.conf
sudo /etc/init.d/supervisor start
# go web http://localhost:8200
Notes: The installation script is in scripts
subdirectory, for example for ubuntu/debian,
you can find scripts/ubuntu.sh
FAQ
- single http daemon
gunicorn -b 127.0.0.1:8001 app:app
# git http daemon
- vilya.config.DOMAIN
- if you run 'gunicorn -b IP:PORT app:app', the DOMAIN should be 'http://IP:PORT'
from https://github.com/douban/code
No comments:
Post a Comment