Added migrations

This commit is contained in:
PB
2022-12-17 06:31:35 +01:00
parent 78418b230d
commit 0a684d45f9
9 changed files with 280 additions and 37 deletions

View File

@@ -3,13 +3,13 @@ set +e
waitForService()
{
./wait-for-it.sh $1 -t 2 1>/dev/null 2>&1
wait-for-it.sh $1 -t 2 1>/dev/null 2>&1
status=$?
while [ $status != 0 ]
do
echo "[x] wating for $1..."
sleep 1
./wait-for-it.sh $1 -t 2 1>/dev/null 2>&1
wait-for-it.sh $1 -t 2 1>/dev/null 2>&1
status=$?
done
}
@@ -19,6 +19,8 @@ waitForService "api-logger:24224"
waitForService "api-registry:8500"
# waitForService "api-eventbus:5672"
# run migrations
migrate.sh
# set -euo pipefail