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