Fakultas Ilmu Komputer UI

Commit 10c6f336 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Update deploy script with waiting for database server to start

parent 657471d7
......@@ -3,14 +3,14 @@
# docker entrypoint script.
# assign a default for the database_user
# DB_USER=${DATABASE_USER:-postgres}
DB_USER=${DATABASE_USER:-postgres}
# # wait until Postgres is ready
# while ! pg_isready -q -h $DATABASE_HOST -p 5432 -U $DB_USER
# do
# echo "$(date) - waiting for database to start"
# sleep 2
# done
# wait until Postgres is ready
while ! pg_isready -q -h $DATABASE_HOST -p 5432 -U $DB_USER
do
echo "$(date) - waiting for database to start"
sleep 2
done
bin="/app/bin/diskuy"
eval "$bin eval \"Diskuy.Release.migrate\""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment