From 6238e33c42216885d5e9e8075bfc46eaf2a990ed Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 23 Oct 2023 20:02:36 +0200 Subject: [PATCH] fix: Correct persistence directory name --- .gitignore | 2 +- Dockerfile | 2 +- data/database.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5085a1b..b8beef6 100644 --- a/.gitignore +++ b/.gitignore @@ -161,4 +161,4 @@ cython_debug/ # custom env.sh -persistance/database.db +persistence/database.db diff --git a/Dockerfile b/Dockerfile index ad6e4e7..f8d3360 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,6 @@ RUN apt update && \ apt-get install git build-essential libffi-dev libssl-dev openssl --no-install-recommends -y \ && pip install --no-cache-dir -r requirements.txt -VOLUME persistance +VOLUME persistence CMD [ "python3", "-m" , "sanic", "app:app", "--fast", "--access-logs", "--motd", "--noisy-exceptions", "-H", "0.0.0.0"] diff --git a/data/database.py b/data/database.py index 44619af..ad93c56 100644 --- a/data/database.py +++ b/data/database.py @@ -1,6 +1,6 @@ from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker -engine = create_engine("sqlite:///persistance/database.db", pool_size=20) +engine = create_engine("sqlite:///persistence/database.db", pool_size=20) Session = sessionmaker(bind=engine)