Browse Source

Allowed database file to be changed via env var

pull/5/head
Kenneth Bruen 3 years ago
parent
commit
efb98ceb2e
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 3
      server/db.py

3
server/db.py

@ -2,7 +2,8 @@ import sqlite3
from flask import current_app, g
DB_FILE = './data/db.sqlite'
import os
DB_FILE = os.environ('DB_FILE', './data/db.sqlite')
get_return = sqlite3.Connection

Loading…
Cancel
Save