Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update cmd Version

aichy12683c2c2468304
diff --git a/Dockerfile b/Dockerfile
index 2610e040..641a0c1a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,6 +12,7 @@ LABEL maintainer="[email protected]"
ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
+# ENV GOPROXY=https://goproxy.io,direct
ENV GOPATH /go
ENV GOROOT /usr/local/go
diff --git a/cmd/main.go b/cmd/main.go
index 9f1f2cc8..192832ad 100644
--- a/cmd/main.go
+++ b/cmd/main.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 {