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: version getter
boojack0b50122aace8
diff --git a/.github/workflows/build-and-push-dev-image.yml b/.github/workflows/build-and-push-dev-image.ymlindex 0d97b9d0d..95c6c7979 100644--- a/.github/workflows/build-and-push-dev-image.yml+++ b/.github/workflows/build-and-push-dev-image.yml@@ -6,7 +6,7 @@ on:- "main"jobs:- docker:+ build-and-push-dev-image:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v2diff --git a/.github/workflows/build-and-push-release-image.yml b/.github/workflows/build-and-push-release-image.ymlindex 3775132f3..ce2c2639a 100644--- a/.github/workflows/build-and-push-release-image.yml+++ b/.github/workflows/build-and-push-release-image.yml@@ -7,7 +7,7 @@ on:- "release/v*.*.*"jobs:- docker:+ build-and-push-release-image:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v2diff --git a/README.md b/README.mdindex 13a4f4258..8caa62304 100644--- a/README.md+++ b/README.md@@ -30,7 +30,7 @@## ⚓️ Deploy with Docker```docker-docker run --name memos --publish 8080:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.0.1+docker run --name memos --publish 5230:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.0.1```If the `~/.memos/` does not have a `memos_prod.db` file, then `memos` will auto generate it.@@ -45,7 +45,7 @@ Memos is built with a curated tech stack. It is optimized for developer experien### Tech Stack-<img alt="tech stack" src="https://raw.githubusercontent.com/justmemos/memos/main/resources/tech-stack.png" width="320" />+<img alt="tech stack" src="https://raw.githubusercontent.com/justmemos/memos/main/resources/tech-stack.png" width="360" />### Prerequisitesdiff --git a/VERSION b/VERSIONdeleted file mode 100644index 8a9ecc2ea..000000000--- a/VERSION+++ /dev/null@@ -1 +0,0 @@-0.0.1\ No newline at end of filediff --git a/common/profile.go b/common/profile.goindex 36f010a08..845bc1f20 100644--- a/common/profile.go+++ b/common/profile.go@@ -40,20 +40,6 @@ func checkDSN(dataDir string) (string, error) {return dataDir, nil}-func getSystemVersion() string {- absPath, err := filepath.Abs("./VERSION")- if err != nil {- return "0.0.0"- }-- data, err := os.ReadFile(absPath)- if err != nil {- return "0.0.0"- }-- return string(data)-}-// GetDevProfile will return a profile for dev.func GetProfile() *Profile {mode := os.Getenv("mode")@@ -79,12 +65,10 @@ func GetProfile() *Profile {dsn := fmt.Sprintf("%s/memos_%s.db", dataDir, mode)- version := getSystemVersion()-return &Profile{Mode: mode,Port: port,DSN: dsn,- Version: version,+ Version: Version,}}diff --git a/common/version.go b/common/version.gonew file mode 100644index 000000000..a66f05aac--- /dev/null+++ b/common/version.go@@ -0,0 +1,4 @@+package common++// Version is the service current released version.+var Version = "0.0.1"