From 8d003876a87b6003e3d5cec0d1c55929b81cb834 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 3 Dec 2023 00:10:17 -0700 Subject: [PATCH] revert the default path to the DB --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ac28982..873bb97 100644 --- a/app.py +++ b/app.py @@ -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