@@ -12,35 +12,35 @@ Golang 结合DDD领域驱动设计的简单o2o实现,包含多渠道(商家),
12
12
# Deploy #
13
13
14
14
## 1.Complied ##
15
- git clone https://github.com/newmin/go2o.git /home/usr/go2o
16
- export GOPATH=$GOPATH:/home/usr/go2o/
17
- cd /home/usr/go2o
18
- go build server.go
15
+ git clone https://github.com/newmin/go2o.git /home/usr/go2o
16
+ export GOPATH=$GOPATH:/home/usr/go2o/
17
+ cd /home/usr/go2o
18
+ go build server.go
19
19
20
20
## 2.Running Service ##
21
- Usage of ./server:
22
- -debug=false: enable debug
23
- -help=false: command usage
24
- -mode="sh": boot mode.'h'- boot http service,'s'- boot socket service
25
- -port=1001: web server port
26
- -port2=1002: socket server port
21
+ Usage of ./server:
22
+ -debug=false: enable debug
23
+ -help=false: command usage
24
+ -mode="sh": boot mode.'h'- boot http service,'s'- boot socket service
25
+ -port=1001: web server port
26
+ -port2=1002: socket server port
27
27
28
28
## 3.Add http proxy by nginx ##
29
- server {
30
- listen 80;
31
- server_name * .ts.com;
32
29
33
- location / {
34
- proxy_pass http://localhost:1001;
35
- proxy_set_header Host $host;
30
+ server {
31
+ listen 80;
32
+ server_name *.ts.com;
33
+ location / {
34
+ proxy_pass http://localhost:1001;
35
+ proxy_set_header Host $host;
36
+ }
36
37
}
37
- }
38
38
39
39
40
40
## 4.Add test hosts ##
41
- vi /etc/hosts
42
- 127.0.0.1 wly.ts.com static.ts.com img.ts.com partner.ts.com
43
- member.ts.com www.ts1.com www.ts2.com api.ts.com wsapi.ts.com
41
+ vi /etc/hosts
42
+ 127.0.0.1 wly.ts.com static.ts.com img.ts.com partner.ts.com
43
+ member.ts.com www.ts1.com www.ts2.com api.ts.com wsapi.ts.com
44
44
45
45
46
46
# Access Entry #
0 commit comments