This commit is contained in:
rob
2025-09-12 22:03:24 +01:00
parent c1011af06a
commit 1ccba36a4e
42 changed files with 1041 additions and 182 deletions
+4 -1
View File
@@ -11,7 +11,7 @@ app = Flask(__name__, static_folder="static")
app.config.update(
{
"DEBUG": bool(os.environ.get("DEBUG") == "True"),
"SQLALCHEMY_DATABASE_URI": "sqlite:///database.sqlite",
"SQLALCHEMY_DATABASE_URI": "sqlite:///foldershare.sqlite",
"SQLALCHEMY_ECHO": bool(os.environ.get("SQLALCHEMY_ECHO") == "True"),
"SQLALCHEMY_TRACK_MODIFICATIONS": bool(
os.environ.get("SQLALCHEMY_TRACK_MODIFICATIONS") == "True"
@@ -21,3 +21,6 @@ app.config.update(
db = SQLAlchemy(app, model_class=Base)
migrate = Migrate(app, db, render_as_batch=True)
root_path = os.environ.get("ROOT_PATH")
if root_path is None:
root_path = "share"