aboutsummaryrefslogtreecommitdiff
path: root/wait-for-postgres.sh
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-06-08 14:13:03 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-06-08 14:13:03 +0200
commit304c416a741d62bb88e38694f99536bcbb7b7d89 (patch)
tree3428ffc8cdd58d6f0f9c1bbd198b13a64246ed21 /wait-for-postgres.sh
parentUpdated CHANGELOG for the new release. (diff)
downloadnewspipe-304c416a741d62bb88e38694f99536bcbb7b7d89.tar.gz
newspipe-304c416a741d62bb88e38694f99536bcbb7b7d89.tar.bz2
newspipe-304c416a741d62bb88e38694f99536bcbb7b7d89.zip
Updated dependencies.
Diffstat (limited to 'wait-for-postgres.sh')
-rwxr-xr-xwait-for-postgres.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/wait-for-postgres.sh b/wait-for-postgres.sh
deleted file mode 100755
index be5e8afe..00000000
--- a/wait-for-postgres.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-# Used for Docker.
-
-set -e
-
-shift
-
-until (! command -v psql || PGPASSWORD=password psql -h db -U "postgres" -c '\q' )
-do
- >&2 echo "Postgres is unavailable - sleeping"
- sleep 1
-done
-
->&2 echo "Postgres is up - executing command"
-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 flask run
bgstack15