From 4d12e4ea5a8c14d13a93382029d82f3cba05d912 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 1 May 2022 21:40:20 +0200 Subject: Config file + run shell script. --- config.py | 6 ++++++ run.sh | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 config.py create mode 100755 run.sh diff --git a/config.py b/config.py new file mode 100644 index 0000000..878c79d --- /dev/null +++ b/config.py @@ -0,0 +1,6 @@ +SECRET_KEY = "Scooby_Lu,_where_are_you?" + +db_name = "fapg.db" +SQLALCHEMY_DATABASE_URI = "sqlite:///" + db_name +SQLALCHEMY_TRACK_MODIFICATIONS = True + diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..0674c4d --- /dev/null +++ b/run.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +source .venv/bin/activate +export FLASK_APP=app/routes +export FLASK_ENV=development +# export FLASK_DEBUG=1 +flask run -- cgit v1.2.3