Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
fix version check for self-hosted, fixes #213
Dane Schneider21f90c11eda5
diff --git a/app/server/routes/routes.go b/app/server/routes/routes.goindex d5545e3f..fda65a24 100644--- a/app/server/routes/routes.go+++ b/app/server/routes/routes.go@@ -35,7 +35,14 @@ func AddHealthRoutes(r *mux.Router) {currentDir := filepath.Dir(execPath)// get version from version.txt- bytes, err := os.ReadFile(filepath.Join(currentDir, "..", "version.txt"))+ var path string+ if os.Getenv("IS_CLOUD") != "" {+ path = filepath.Join(currentDir, "..", "version.txt")+ } else {+ path = filepath.Join(currentDir, "version.txt")+ }++ bytes, err := os.ReadFile(path)if err != nil {http.Error(w, "Error getting version", http.StatusInternalServerError)