diff --git a/Noted.py b/Noted.py index a227985..ee8e68e 100644 --- a/Noted.py +++ b/Noted.py @@ -15,7 +15,7 @@ from frontend.ui import ui HOST = '0.0.0.0' PORT = '8080' THREADS = 10 -DB_FILENAME = 'Noted.db' +DB_FILENAME = 'db', 'Noted.db' def _folder_path(*folders) -> str: """Turn filepaths relative to the project folder into absolute paths @@ -79,7 +79,7 @@ def Noted() -> None: # Register web server app = _create_app() with app.app_context(): - DBConnection.file = _folder_path(DB_FILENAME) + DBConnection.file = _folder_path(*DB_FILENAME) setup_db() reminder_handler._find_next_reminder() diff --git a/README.md b/README.md index a6055a1..7cc545e 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,9 @@ You can see our planned features in our [Project board](https://github.com/users ## Installation Replace the timezone value (`TZ=`) to the [TZ database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of your timezone! ```bash -docker volume create noted-db docker run -d \ --name noted \ - -v noted-db:/app \ + -v noted-db:/app/db \ -e TZ=Europe/Amsterdam \ -p 8080:8080 \ mrcas/noted:latest