mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
Fixed problem with docker volume mount location
This commit is contained in:
4
Noted.py
4
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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user