opensemanticsearch / open-semantic-search-apps

Python/Django based webapps and web user interfaces for search, structure (meta data management like thesaurus, ontologies, annotations and named entities) and data import (ETL like text extraction, OCR and crawling filesystems or websites)
https://opensemanticsearch.org/
GNU General Public License v3.0
95 stars 36 forks source link

Separated path for Django sqlite DB #61

Closed opensemanticsearch closed 4 years ago

opensemanticsearch commented 4 years ago

Use a separated path for Django DB file (currently /var/lib/opensemanticsearch/db.sqlite3), so it can be mounted separated from Django apps in Docker volume to enable automatic updates/overwrite of apps by new release of Docker container without overwriting the config DB.

Mandalka commented 4 years ago

On Debian package upgrades, old directory structure will be moved automatically to new destination by https://github.com/opensemanticsearch/open-semantic-search-apps/blob/master/DEBIAN/postinst

Mandalka commented 4 years ago

New db, thumbnails and ontologies paths created by https://github.com/opensemanticsearch/open-semantic-search/blob/master/Dockerfile or https://github.com/opensemanticsearch/open-semantic-search-apps/blob/master/DEBIAN/postinst to have same settings in debian package installations, vms and docker and changed filename/dir config in https://github.com/opensemanticsearch/open-semantic-search-apps/blob/master/src/opensemanticsearch/settings.py