Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memos postgresql #47

Open
kuduacz opened this issue Oct 25, 2024 · 1 comment
Open

memos postgresql #47

kuduacz opened this issue Oct 25, 2024 · 1 comment

Comments

@kuduacz
Copy link

kuduacz commented Oct 25, 2024

How to switch to postgresql database? there is no config file to enter new value.

@jdeath
Copy link
Owner

jdeath commented Oct 25, 2024

I made the addon simple, so it does not have that configuration option. I might be able to add it, but it adds a lot of complexity.

You can download the repo, move the memos folder into /addons/ then it should show in your local addon-store store. edit the config.json and look in the environment field: make it look like:

"environment": {
"MEMOS_DRIVER": "postgres",
"MEMOS_DSN": "postgresql://root:password@localhost:5432/memos",
    "MEMOS_DATA": "/config/"
  },

Then you have to re-install the addon. If you get the URL wrong, you need to uninstall//reinstall the addon for it to register the change.

You can also look at some of my addons, like WG_EASY to figure how how to take configuration values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants