pull/25/merge
Minho 2017-05-03 17:39:27 +08:00
parent eb952f44a9
commit 3aa32a3abb
3 changed files with 3 additions and 5 deletions

View File

@ -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"]

View File

@ -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

View File

@ -5,7 +5,6 @@ import (
"github.com/astaxie/beego/context"
"github.com/lifei6671/godoc/conf"
"github.com/lifei6671/godoc/models"
"strings"
)
func init() {