Skip to content

Commit 3bf0bb6

Browse files
committed
Update README.md
1 parent 8593b9c commit 3bf0bb6

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,35 @@ Golang 结合DDD领域驱动设计的简单o2o实现,包含多渠道(商家),
1212
# Deploy #
1313

1414
## 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
1919

2020
## 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
2727

2828
## 3.Add http proxy by nginx ##
29-
server {
30-
listen 80;
31-
server_name *.ts.com;
3229

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+
}
3637
}
37-
}
3838

3939

4040
## 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
4444

4545

4646
# Access Entry #

0 commit comments

Comments
 (0)