We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d30a5 commit 3d54653Copy full SHA for 3d54653
1 file changed
internal/install/install_main.go
@@ -25,13 +25,20 @@ import (
25
26
"github.com/apache/answer/internal/base/path"
27
"github.com/apache/answer/internal/base/translator"
28
+ "github.com/joho/godotenv"
29
)
30
31
var (
- port = os.Getenv("INSTALL_PORT")
32
+ port string
33
confPath = ""
34
35
36
+func init() {
37
+ _ = godotenv.Load()
38
+ port = os.Getenv("INSTALL_PORT")
39
+
40
+}
41
42
func Run(configPath string) {
43
confPath = configPath
44
// initialize translator for return internationalization error when installing.
0 commit comments