目前 CODE 仅开放了一个框架,支持:
git clone https://github.com/douban/code.git
cd code
mysql -uroot -e 'create database valentine;'
mysql -uroot -D valentine < vilya/databases/schema.sql
virtualenv venv
. venv/bin/activate
pip install cython
pip install -U setuptools
pip install -r requirements.txt
gunicorn -w 2 -b 127.0.0.1:8000 app:app
cd {CODE_REPO}
cp vilya/local_config.py.tmpl vilya/local_config.py
vilya/config.py
默认设置vim vilya/local_config.py
http://127.0.0.1:8000/