From 200acb601c4a271cf3be7d8651e80b28f55309d2 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 28 Mar 2026 08:59:07 +0100 Subject: GENECUP_DATADIR configures sqlite DB location --- server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index bd3bd57..b1a7404 100755 --- a/server.py +++ b/server.py @@ -70,9 +70,7 @@ def version(): app=Flask(__name__) -#datadir="/export/ratspub/" -#datadir = "." -datadir="./" +datadir=os.environ.get("GENECUP_DATADIR", "./") app.config['SECRET_KEY'] = '#DtfrL98G5t1dC*4' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///'+datadir+'userspub.sqlite' -- cgit 1.4.1