Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed May 3, 2017
1 parent eb952f4 commit 3aa32a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ WORKDIR /go/src/github.com/lifei6671/godoc
RUN chmod +x start.sh

RUN go get -d ./... && \
go build -v -o godoc-linux-amd64 -ldflags "-w"
go get github.com/mitchellh/gox && \
gox


CMD ["./start.sh"]
4 changes: 1 addition & 3 deletions models/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ func (p *Option) FindByKey(key string) (*Option,error) {

func GetOptionValue(key, def string) string {

option := NewOption()

if err := option.FindByKey(key); err == nil {
if option,err := NewOption().FindByKey(key); err == nil {
return option.OptionValue
}
return def
Expand Down
1 change: 0 additions & 1 deletion routers/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"github.com/astaxie/beego/context"
"github.com/lifei6671/godoc/conf"
"github.com/lifei6671/godoc/models"
"strings"
)

func init() {
Expand Down

0 comments on commit 3aa32a3

Please sign in to comment.