GithubHelp home page GithubHelp logo

hu19891110 / code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from douban/code

0.0 2.0 0.0 9.02 MB

Douban CODE

Home Page: douban-code.github.io

License: Other

JavaScript 43.57% Makefile 0.01% Python 8.33% CSS 44.61% Shell 0.34% HTML 3.08% Mako 0.07%

code's Introduction

Build Status

Douban CODE

Dependency

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.

code's People

Contributors

davideuler avatar dongweiming avatar hanxi avatar iceleaf916 avatar kitelife avatar liluo avatar mozillazg avatar prayagverma avatar ryaninhust avatar tclh123 avatar xtao avatar yjcxy12 avatar yupbank avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.