fix: Correct persistence directory name

This commit is contained in:
oSumAtrIX 2023-10-23 20:02:36 +02:00
parent 3404b53b26
commit 6238e33c42
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -161,4 +161,4 @@ cython_debug/
# custom
env.sh
persistance/database.db
persistence/database.db

View File

@ -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"]

View File

@ -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)