summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2022-05-01 21:40:20 +0200
committerMarius Peter <marius.peter@tutanota.com>2022-05-01 21:40:20 +0200
commit4d12e4ea5a8c14d13a93382029d82f3cba05d912 (patch)
tree59beefb3c05ff0fa27e5a692a7f35457009bccb9
parent1727413d592302a1198b6cad8ee0d1cf9b5d50f5 (diff)
Config file + run shell script.
-rw-r--r--config.py6
-rwxr-xr-xrun.sh7
2 files changed, 13 insertions, 0 deletions
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
Copyright 2019--2024 Marius PETER