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
chore: upgrade version to `0.10.1` (#949)
boojack677750ef5107
diff --git a/Dockerfile b/Dockerfileindex 2685444c3..652e592e8 100644--- a/Dockerfile+++ b/Dockerfile@@ -4,15 +4,13 @@ WORKDIR /frontend-buildCOPY ./web/ .-RUN yarn-RUN yarn build+RUN yarn && yarn build# Build backend exec file.FROM golang:1.19.3-alpine3.16 AS backendWORKDIR /backend-build-RUN apk update-RUN apk --no-cache add gcc musl-dev+RUN apk update && apk add --no-cache gcc musl-devCOPY . .COPY --from=frontend /frontend-build/dist ./server/distdiff --git a/server/metric_collector.go b/server/metric_collector.goindex 9c755de64..01acc981d 100644--- a/server/metric_collector.go+++ b/server/metric_collector.go@@ -27,7 +27,7 @@ func (s *Server) registerMetricCollector() {mc := &MetricCollector{collector: c,ID: s.ID,- Enabled: true,+ Enabled: false,Profile: s.Profile,}s.Collector = mcdiff --git a/server/resource.go b/server/resource.goindex cf04f3eb2..9b6277339 100644--- a/server/resource.go+++ b/server/resource.go@@ -268,8 +268,8 @@ func (s *Server) registerResourcePublicRoutes(g *echo.Group) {return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to fetch resource ID: %v", resourceID)).SetInternal(err)}- resourceType := resource.Type- if strings.HasPrefix(resource.Type, "text") || strings.HasPrefix(resource.Type, "application") {+ resourceType := strings.ToLower(resource.Type)+ if strings.HasPrefix(resourceType, "text") || strings.HasPrefix(resourceType, "application") {resourceType = echo.MIMETextPlain}c.Response().Writer.Header().Set(echo.HeaderCacheControl, "max-age=31536000, immutable")diff --git a/server/version/version.go b/server/version/version.goindex df7a572e2..8e537d090 100644--- a/server/version/version.go+++ b/server/version/version.go@@ -9,10 +9,10 @@ import (// Version is the service current released version.// Semantic versioning: https://semver.org/-var Version = "0.10.0"+var Version = "0.10.1"// DevVersion is the service current development version.-var DevVersion = "0.10.0"+var DevVersion = "0.10.1"func GetCurrentVersion(mode string) string {if mode == "dev" {diff --git a/store/db/db.go b/store/db/db.goindex 5ef6f4ccf..2a9d4e9ea 100644--- a/store/db/db.go+++ b/store/db/db.go@@ -73,13 +73,15 @@ func (db *DB) Open(ctx context.Context) (err error) {return fmt.Errorf("failed to find migration history, err: %w", err)}if len(migrationHistoryList) == 0 {- if _, err = db.UpsertMigrationHistory(ctx, &MigrationHistoryUpsert{+ _, err := db.UpsertMigrationHistory(ctx, &MigrationHistoryUpsert{Version: currentVersion,- }); err != nil {+ })+ if err != nil {return fmt.Errorf("failed to upsert migration history, err: %w", err)}return nil}+migrationHistoryVersionList := []string{}for _, migrationHistory := range migrationHistoryList {migrationHistoryVersionList = append(migrationHistoryVersionList, migrationHistory.Version)