summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2022-07-24 16:02:49 +0200
committerMarius Peter <marius.peter@tutanota.com>2022-07-24 16:02:49 +0200
commit648ae3082e7491ad2e3017be43f0b0dafc36202f (patch)
tree6ed075a2cc12689c8986d14cc769aea2f70f2513
parent51c9fed15381421c4b7e8ba95af60b5204483d50 (diff)
Run scripts.
-rwxr-xr-xrun-development.sh (renamed from run.sh)2
-rwxr-xr-xrun-production.sh6
2 files changed, 8 insertions, 0 deletions
diff --git a/run.sh b/run-development.sh
index 7927234..7011cc3 100755
--- a/run.sh
+++ b/run-development.sh
@@ -1,6 +1,8 @@
#! /bin/bash
source .venv/bin/activate
+pip freeze > requirements.txt
+echo Saved required Python packages to requirements.txt
export FLASK_APP=app
export FLASK_ENV=development
# export FLASK_DEBUG=1
diff --git a/run-production.sh b/run-production.sh
new file mode 100755
index 0000000..d144e6a
--- /dev/null
+++ b/run-production.sh
@@ -0,0 +1,6 @@
+#! /bin/bash
+
+source .venv/bin/activate
+export FLASK_APP=app
+export FLASK_ENV=production
+flask run
Copyright 2019--2025 Marius PETER