mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
fix: Correct persistence directory name
This commit is contained in:
parent
3404b53b26
commit
6238e33c42
2
.gitignore
vendored
2
.gitignore
vendored
@ -161,4 +161,4 @@ cython_debug/
|
||||
|
||||
# custom
|
||||
env.sh
|
||||
persistance/database.db
|
||||
persistence/database.db
|
||||
|
@ -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"]
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user