We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a064a1 commit 85580f2Copy full SHA for 85580f2
src/server/bin/export_secrets.sh
@@ -0,0 +1,7 @@
1
+set -o allexport
2
+ while read k _ v;
3
+ do
4
+ eval $k=$v;
5
+ export k;
6
+ done < 'secrets.py'
7
+ set +o allexport
src/server/bin/startServer.sh
@@ -1,9 +1,10 @@
+#!/bin/bash
# we may want to switch this to a script which logs output, etc?
echo "------------STARTING `date` ------------------"
set FLASK_APP=server/app.py
export FLASK_APP
-
+source bin/export_secrets.sh
8
# This abomination ensures that the PG server has finished its restart cycle
9
echo "SLEEPING.. WAITING FOR DB"; sleep 5; echo "WAKING"; alembic upgrade head; echo "DB SETUP";
10
#; python -m flask run --host=0.0.0.0 --no-reload
0 commit comments