This commit is contained in:
Jay 2018-09-20 22:28:19 +08:00
parent 4cd21015f1
commit 0e0d2b94b6
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM golang:1.11-alpine3.8 as builder FROM golang:1.11-alpine3.8 as builder
WORKDIR /go/src/git.trj.tw/golang/mtfosbot WORKDIR /go/src/git.trj.tw/golang/mtfosbot
RUN apk add --no-cache make git RUN apk add --no-cache make git \
RUN go get -u github.com/otakukaze/go-bindata/... && go get -u github.com/otakukaze/go-bindata/...
COPY . . COPY . .
RUN make RUN make

View File

@ -4,6 +4,7 @@ import (
"encoding/gob" "encoding/gob"
"errors" "errors"
"flag" "flag"
"fmt"
"log" "log"
"os" "os"
"path" "path"
@ -42,6 +43,8 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
fmt.Println("load config ::::", config.GetConf())
// connect to database // connect to database
db, err := model.NewDB() db, err := model.NewDB()
if err != nil { if err != nil {