Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Dec 22, 2019
1 parent d774e18 commit 7c30499
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ mysql -h 127.0.0.1 -u root -p < schema.sql
##### install modules
```bash
# set $GOPATH and $GOROOT
mkdir -p $GOPATH/src/github.com/710leo
cd $GOPATH/src/github.com/710leo
git clone https://github.com/710leo/urlooker.git
go get ./...
./control build
./control start all
curl https://raw.githubusercontent.com/710leo/urlooker/master/install.sh|bash

cd $GOPATH/src/github.com/710leo/urlooker && ./control.sh start all
```

open http://127.0.0.1:1984 in browser
Expand Down
11 changes: 11 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
if [ "x$GOPATH" = "x" ];then
echo "GOPATH is not set, please set $GOPATH!"
exit 1
fi

export GO111MODULE="off"
echo "set GO111MODULE=off"
mkdir -p $GOPATH/src/github.com/710leo
cd $GOPATH/src/github.com/710leo && git clone https://github.com/710leo/urlooker.git
cd $GOPATH/src/github.com/710leo/urlooker && ./control.sh build
echo "install ok! run cd $GOPATH/src/github.com/710leo/urlooker && ./control.sh start all"
9 changes: 3 additions & 6 deletions readme_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ mysql -h 127.0.0.1 -u root -p < schema.sql
##### 安装组件
```bash
# set $GOPATH and $GOROOT
mkdir -p $GOPATH/src/github.com/710leo
cd $GOPATH/src/github.com/710leo
git clone https://github.com/710leo/urlooker.git
go get ./...
./control build
./control start all
curl https://raw.githubusercontent.com/710leo/urlooker/master/install.sh|bash

cd $GOPATH/src/github.com/710leo/urlooker && ./control.sh start all
```

打开浏览器访问 http://127.0.0.1:1984 即可
Expand Down

0 comments on commit 7c30499

Please sign in to comment.