GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - douban/code: [DEPRECATED]Douban CODE

This repository was archived by the owner on May 7, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

150 Commits
150 Commits

Folders and files

NameName
Last commit message
Last commit date
dispatches
dispatches
 
 
dist
dist
 
 
dockerfiles
dockerfiles
 
 
hub
hub
 
 
scripts
scripts
 
 
tests
tests
 
 
tools
tools
 
 
vilya
vilya
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
AUTHORS
AUTHORS
 
 
Dockerfile
Dockerfile
 
 
Gruntfile.js
Gruntfile.js
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Vagrantfile
Vagrantfile
 
 
app.py
app.py
 
 
app_sina.py
app_sina.py
 
 
celeryconfig.py
celeryconfig.py
 
 
code.env
code.env
 
 
code.local.env.sample
code.local.env.sample
 
 
code_config.yaml
code_config.yaml
 
 
default_code_config.yaml
default_code_config.yaml
 
 
docker-common.yml
docker-common.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
favicon.ico
favicon.ico
 
 
package.json
package.json
 
 
requirements.txt
requirements.txt
 
 
setup_databases.sh
setup_databases.sh
 
 
tasks.py
tasks.py
 
 
web.py
web.py
 
 
webpack.config.js
webpack.config.js
 
 
wsgi.py
wsgi.py
 
 

Repository files navigation

Build Status

Douban CODE

  • Website: http://douban-code.github.io
  • Guide: http://douban-code.github.io/pages/getting-started.html

Dependency

  • libmc https://github.com/douban/libmc
  • Python 2.7+
  • pip >= 1.4.1

Docker Installation

  1. Intall Docker Engine and Docker Compose.
  2. 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.
  3. cp code.local.env.sample code.local.env then change the value of DOUBAN_CODE_DOMAIN to http://IP:8200.
  4. docker-compose build
  5. docker-compose up -d
  6. mysql -udouban_code -pmy-code-passwd -h IP -D valentine < vilya/databases/schema.sql
  7. open http://IP:8200

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

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

License

CODE is under Revised BSD License. See the LICENSE file for the full license text.

About

[DEPRECATED]Douban CODE

douban-code.github.io

Resources

Readme
License
Activity
Custom properties

Stars

1.8k stars

Watchers

1 watching

Forks

348 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.