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.

feat: entrypoint add upgrade

LinkinStar1fdf5808339e
diff --git a/cmd/answer/command.go b/cmd/answer/command.go
index 1ddd844b..cb80fe47 100644
--- a/cmd/answer/command.go
+++ b/cmd/answer/command.go
@@ -52,6 +52,7 @@ To run answer, use:
Short: "Run the application",
Long: `Run the application`,
Run: func(_ *cobra.Command, _ []string) {
+ fmt.Println("Answer is string..........................")
runApp()
},
}
diff --git a/script/entrypoint.sh b/script/entrypoint.sh
index c66528d8..9c09ec3c 100755
--- a/script/entrypoint.sh
+++ b/script/entrypoint.sh
@@ -1,3 +1,4 @@
#!/bin/bash
/usr/bin/answer init
+/usr/bin/answer upgrade
/usr/bin/answer run -c /data/conf/config.yaml