Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: disable profiler in production mode (#4925)
Maximilian Krauße724a7ef720e
diff --git a/server/server.go b/server/server.goindex f5e7e83b0..c15c8c161 100644--- a/server/server.go+++ b/server/server.go@@ -52,10 +52,12 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.StoreechoServer.Use(middleware.Recover())s.echoServer = echoServer- // Initialize profiler- s.profiler = profiler.NewProfiler()- s.profiler.RegisterRoutes(echoServer)- s.profiler.StartMemoryMonitor(ctx)+ if profile.Mode != "prod" {+ // Initialize profiler+ s.profiler = profiler.NewProfiler()+ s.profiler.RegisterRoutes(echoServer)+ s.profiler.StartMemoryMonitor(ctx)+ }workspaceBasicSetting, err := s.getOrUpsertWorkspaceBasicSetting(ctx)if err != nil {