mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-11 11:50:27 +01:00
Hardcoded paths #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @icovada on GitHub (Dec 28, 2025).
There are many hardcoded paths that force specific folders to be used.
This can cause issues if used as a systemd service with strict permissions or in immutable distros like nixos
@eitchtee commented on GitHub (Dec 28, 2025):
Hey @icovada
Do you have any examples of this? Are you talking about things like
/tmp/migrations_completeand/etc/supervisor/conf.d/supervisord.confor something else?@icovada commented on GitHub (Dec 28, 2025):
I'm talking about things like
63ce57a315/app/WYGIWYH/settings.py (L327)63ce57a315/app/WYGIWYH/settings.py (L24)63ce57a315/app/apps/import_app/services/presets.py (L8)Everything works fine in Docker, but in other cases one might not want to use those paths and instead contain everything inside a single application folder
@eitchtee commented on GitHub (Dec 28, 2025):
I see. Makes sense.
/usr/src/app/import_presetscould be a relative path, since it's just accessing the import_presets folder inside the application folderLet me know if you need any help on this.