@@ -39,6 +39,14 @@ $boot2docker ip
39
39
$docker run -t -i code /bin/bash
40
40
```
41
41
42
+ Vagrant Installation
43
+ --------------------
44
+
45
+ ```
46
+ $cd code
47
+ vagrant up
48
+ ```
49
+
42
50
Quick Installation
43
51
------------------
44
52
Currently supports the following systems:
@@ -58,47 +66,11 @@ bash <(curl -s https://raw.githubusercontent.com/douban/code/master/scripts/inst
58
66
Notes: The install script in ` code/scripts ` subdirectory, for example ubuntu/debian,
59
67
You can see ` code/scripts/ubuntu.sh `
60
68
61
- Prepare
62
- -------
63
- - mysql # default port
64
-
65
- ```
66
- # import vilya/databases/schema.sql to database `valentine`
67
- $ mysql -uroot -e 'create database valentine;'
68
- $ mysql -uroot -D valentine < vilya/databases/schema.sql
69
- ```
70
-
71
- - memcached # default port
72
-
73
- - customize code config
74
- ```
75
- # after clone code repo you can change the default config by:
76
- $ cd {CODE_REPO}
77
- $ cp vilya/local_config.py.tmpl vilya/local_config.py
78
- # overwrite configs defined in vilya/config.py.
79
- $ vim vilya/local_config.py
80
- ```
81
-
82
- Getting started
83
- ---------------
84
- ```
85
- git clone https://github.com/douban/code.git
86
- cd code
87
- mysql -uroot -e 'create database valentine;'
88
- mysql -uroot -D valentine < vilya/databases/schema.sql
89
- virtualenv venv
90
- . venv/bin/activate
91
- pip install cython # should install first
92
- pip install -U setuptools
93
- pip install -r requirements.txt
94
- gunicorn -w 2 -b 127.0.0.1:8000 app:app # web & git http daemon
95
- ```
96
-
97
69
FAQ
98
70
----
99
71
100
72
1 . single http daemon
101
- - ` gunicorn -b 127.0.0.1:8001 smart_httpd :app ` # git http daemon
73
+ - ` gunicorn -b 127.0.0.1:8001 app :app ` # git http daemon
102
74
103
75
2 . vilya.config.DOMAIN
104
76
- if you run 'gunicorn -b IP: PORT app: app ', the DOMAIN should be 'http://IP:PORT/ '
0 commit comments