revert the default path to the DB

This commit is contained in:
2023-12-03 00:10:17 -07:00
parent a2edf9271a
commit 8d003876a8

2
app.py
View File

@@ -37,7 +37,7 @@ class WebPushService():
self.app = app
# Setting the database URI for the application
db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:////srv/py-push-server/data/webpush.db')
db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:////app/instance/data/webpush.db')
# This relative path works in docker-compose
#db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:///data/webpush.db')
self.app.config['SQLALCHEMY_DATABASE_URI'] = db_uri