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
|
ARG GOPROXY
|
||||||
ENV GOPROXY ${GOPROXY:-direct}
|
ENV GOPROXY ${GOPROXY:-direct}
|
||||||
|
# ENV GOPROXY=https://goproxy.io,direct
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package answercmd
|
package answercmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ func runApp() {
|
||||||
constant.Version = Version
|
constant.Version = Version
|
||||||
constant.Revision = Revision
|
constant.Revision = Revision
|
||||||
schema.AppStartTime = time.Now()
|
schema.AppStartTime = time.Now()
|
||||||
|
fmt.Println("answer Version:", constant.Version, " Revision:", constant.Revision)
|
||||||
|
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
if err := app.Run(); err != nil {
|
if err := app.Run(); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue