aboutsummaryrefslogtreecommitdiff
path: root/wait-for-postgres.sh
diff options
context:
space:
mode:
Diffstat (limited to 'wait-for-postgres.sh')
-rwxr-xr-xwait-for-postgres.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/wait-for-postgres.sh b/wait-for-postgres.sh
index 3f4e7067..be5e8afe 100755
--- a/wait-for-postgres.sh
+++ b/wait-for-postgres.sh
@@ -13,7 +13,10 @@ do
done
>&2 echo "Postgres is up - executing command"
-export Newspipe_CONFIG=/newspipe/instance/config.py
-poetry run ./manager.py db_create >/dev/null
+export NEWSPIPE_CONFIG=/newspipe/instance/config.py
+export FLASK_APP=runserver.py
+export FLASK_ENV=development
+poetry run flask db_create >/dev/null
+poetry run flask create_admin --nickname admin --password password >/dev/null
poetry run pybabel compile -d newspipe/translations
-poetry run ./runserver.py
+poetry run flask run
bgstack15