|
@ -37,7 +37,7 @@ class WebPushService(): |
|
|
self.app = app |
|
|
self.app = app |
|
|
|
|
|
|
|
|
# Setting the database URI for the application |
|
|
# 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 |
|
|
# This relative path works in docker-compose |
|
|
#db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:///data/webpush.db') |
|
|
#db_uri = os.getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:///data/webpush.db') |
|
|
self.app.config['SQLALCHEMY_DATABASE_URI'] = db_uri |
|
|
self.app.config['SQLALCHEMY_DATABASE_URI'] = db_uri |
|
|