Skip to content

Commit

Permalink
Update test backend
Browse files Browse the repository at this point in the history
  • Loading branch information
vectornguyen76 committed Nov 24, 2023
1 parent ccdc7f9 commit 97fa3f3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions backend/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/sh

echo "Start run entrypoint script..."
# echo "Start run entrypoint script..."

echo "Waiting for postgres..."
# echo "Waiting for postgres..."

while ! psql -h $POSTGRES_HOST -U $POSTGRES_USER -d $POSTGRES_DB
do
echo "Waiting for PostgreSQL..."
sleep 0.5
done
# while ! psql -h $POSTGRES_HOST -U $POSTGRES_USER -d $POSTGRES_DB
# do
# echo "Waiting for PostgreSQL..."
# sleep 0.5
# done

echo "PostgreSQL started"
# echo "PostgreSQL started"

echo "Migrate database"
alembic revision -m "initial" --autogenerate
alembic upgrade head
# echo "Migrate database"
# alembic revision -m "initial" --autogenerate
# alembic upgrade head

HOST=${HOST:-0.0.0.0}
PORT=${PORT:-5000}
Expand Down

0 comments on commit 97fa3f3

Please sign in to comment.