podgrab
podgrab copied to clipboard
Settings lost on container restart (because of a new ID?)
- Installation Type: Docker
- Have you tried using the latest docker image / code base: yes
Describe the bug It seems that settings once saved from the dedicated page and correctly saved into the database, but are not "unique" and assigned a specific ID as seen in the following capture:
Everything works as expected... until you restart the container (for an update for example). Then the settings are reset to the default ones, apparently because the application creates and uses a new row from the settings
table, instead of reusing the existing/previous one.
Which leads to this question: why this structure for the settings
table exactly? I would have expected a row per config key, not a column :thinking:
C.f. issue #163 that seems to point the same bug.
To Reproduce Steps to reproduce the behavior:
- Go to the Settings page
- Customize the settings
- Click on Save
- Go back to Home, then Settings
- Settings have been save correctly
- Restart the container
- Go to the Settings page
- Settings are back to default
Expected behavior Keep settings, especially the base domain between each container instances.