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

[BUG] No changes occur when changing config.Config. FileUploadEngine #622

Open
Todvaa opened this issue May 27, 2024 · 2 comments
Open

[BUG] No changes occur when changing config.Config. FileUploadEngine #622

Todvaa opened this issue May 27, 2024 · 2 comments
Labels
🐛bug Something isn't working

Comments

@Todvaa
Copy link

Todvaa commented May 27, 2024

I already solve the problem, but I spent time searching.

At the low level of the library, config values ​​are added to the database, but only if such a field does not already exist. Because of this, if you have ever run the config, no changes will occur.

Solution:
Clear the goadmin_site table before starting.

Hope it will help to someone.

@Todvaa Todvaa added the 🐛bug Something isn't working label May 27, 2024
@Todvaa Todvaa closed this as completed May 27, 2024
@Todvaa Todvaa reopened this May 27, 2024
@notcgi
Copy link

notcgi commented May 27, 2024

Why do we need to store this config in DB? What is stored in DB? Full config?
What will happened when we change the config of FileUploadEngine? Will it updated in db?

It should be described in doc

@alikhanich
Copy link

Well, this bug exists for all config options. For example language is not changed, when I change in config.yaml. In all examples configs are first loaded from config.yaml, then after the call to func (t SiteModel) Init(cfg map[string]string) SiteModel configs are loaded from database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants