mirror of https://gitee.com/answerdev/answer.git
update cmd Version
This commit is contained in:
parent
f50414adcf
commit
83c2c24683
|
@ -12,6 +12,7 @@ LABEL maintainer="aichy@sf.com"
|
|||
|
||||
ARG GOPROXY
|
||||
ENV GOPROXY ${GOPROXY:-direct}
|
||||
# ENV GOPROXY=https://goproxy.io,direct
|
||||
|
||||
ENV GOPATH /go
|
||||
ENV GOROOT /usr/local/go
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package answercmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
|
@ -56,6 +57,7 @@ func runApp() {
|
|||
constant.Version = Version
|
||||
constant.Revision = Revision
|
||||
schema.AppStartTime = time.Now()
|
||||
fmt.Println("answer Version:", constant.Version, " Revision:", constant.Revision)
|
||||
|
||||
defer cleanup()
|
||||
if err := app.Run(); err != nil {
|
||||
|
|
Loading…
Reference in New Issue