Skip to content

Commit

Permalink
fix: Correct persistence directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 23, 2023
1 parent 3404b53 commit 6238e33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ cython_debug/

# custom
env.sh
persistance/database.db
persistence/database.db
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion data/database.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 6238e33

Please sign in to comment.