Skip to content
New issue

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

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

Already on GitHub? # to your account

fix path of SQLITE_URL for Django (postorius + web docker-image) #539

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

SvenRoederer
Copy link
Contributor

Startup of images using SQLite database fails as of non-existent database file.
Fix this by using the proper syntax (joke2k/django-environ#187 (comment)) to have the database created at /opt/mailman-web-data/mailmanweb.db .

Addresses the problem of #193 I also ran into.

Startup of images using SQLite database fails as of non-existent database file.
Fix this by using the proper syntax [1] to have the database created at /opt/mailman-web-data/mailmanweb.db

1 - joke2k/django-environ#187 (comment)

Signed-off-by: Sven Roederer <sven@geroedel.de>
@maxking
Copy link
Owner

maxking commented Apr 14, 2022

We don’t use django-environ in this project and also the syntax is actually correct, it will just create the database in the CWD which is /opt/mailman-web inside the container. The only issue really is that it won’t persist container upgrades since it is not a mount point.

Although, they are different database engines.

Does this change in this allow your local setup to work correctly? If yes, I’ll go ahead and merge this.

@github-actions
Copy link

This Pull Request has not been updated for more than 1year

@SvenRoederer
Copy link
Contributor Author

Sorry for the long delay ...

As far as I remember, with this change included the setup passed without issues.

@maxking
Copy link
Owner

maxking commented Sep 20, 2024

Thanks! Merging this.

@maxking maxking merged commit 154e7ee into maxking:main Sep 20, 2024
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants