- Website: http://douban-code.github.io
- Guide: http://douban-code.github.io/pages/getting-started.html
- libmc https://github.com/douban/libmc
- Python 2.7+
- pip >= 1.4.1
- Intall Docker Engine and Docker Compose.
- Note the Docker host IP address, if you are using a Docker Machine VM,
you can use the
docker-machine ip MACHINE_NAME
to get the IP address. cp code.local.env.sample code.local.env
then change the value ofDOUBAN_CODE_DOMAIN
tohttp://IP:8200
.docker-compose build
docker-compose up -d
mysql -udouban_code -pmy-code-passwd -h IP -D valentine < vilya/databases/schema.sql
- open http://IP:8200
$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
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
- 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'
CODE is under Revised BSD License. See the LICENSE file for the full license text.