Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

qingfeng/code

Repository files navigation

Douban CODE

Prepare

  • mysql # default port
# import code/databases/schema.sql to database `valentine`
$ mysql -uroot -e 'create database valentine;'
$ mysql -uroot -D valentine < code/databases/schema.sql
  • memcached # default port

  • customize code config

# after clone code repo you can change the default config by:
$ touch CODE_REPO/code/local_config.py
# overwrite configs defined in code/config.py.
$ vim CODE_REPO/code/local_config.py

Getting started

git clone https://github.com/douban/code.git
cd code
mysql -uroot -e 'create database valentine;'
mysql -uroot -D valentine < code/databases/schema.sql
virtualenv venv
. venv/bin/activate
pip install cython # should install first
pip install -U setuptools # python-libmemcached require updated setuptools
pip install -r requirements.txt
gunicorn -w 2 -b 127.0.0.1:8000 app:app # web & git http daemon

FAQ

  1. single http daemon
  • gunicorn -b 127.0.0.1:8001 smart_httpd:app # git http daemon
  1. code.config.DOMAIN
  • if you run 'gunicorn -b IP:PORT app:app', the DOMAIN should be 'http://IP:PORT/'

License

See the LICENSE file for the full license text.

About

Douban CODE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.0%
  • Python 15.4%
  • CSS 3.5%
  • Shell 0.1%

AltStyle によって変換されたページ (->オリジナル) /