modify
This commit is contained in:
parent
4cd21015f1
commit
0e0d2b94b6
@ -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
|
||||||
|
|
||||||
|
3
main.go
3
main.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user