Browse Source

revert the default path to the DB

regen-endpoint
Trent Larson 11 months ago
parent
commit
8d003876a8
  1. 2
      app.py

2
app.py

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

Loading…
Cancel
Save