docker-mailman icon indicating copy to clipboard operation
docker-mailman copied to clipboard

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

Open SvenRoederer opened this issue 3 years ago • 3 comments

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

Addresses the problem of #193 I also ran into.

SvenRoederer avatar Mar 31 '22 22:03 SvenRoederer

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.

maxking avatar Apr 14 '22 07:04 maxking

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

github-actions[bot] avatar Jun 19 '23 22:06 github-actions[bot]

Sorry for the long delay ...

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

SvenRoederer avatar Jun 25 '23 21:06 SvenRoederer