mirror of https://github.com/mindoc-org/mindoc.git
pull/25/merge
parent
eb952f44a9
commit
3aa32a3abb
|
@ -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"]
|
|
@ -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
|
||||
|
|
|
@ -5,7 +5,6 @@ import (
|
|||
"github.com/astaxie/beego/context"
|
||||
"github.com/lifei6671/godoc/conf"
|
||||
"github.com/lifei6671/godoc/models"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in New Issue