CHORE: remove debug temporário do workflow de migrations
All checks were successful
Deploy Dev / Deploy para VM Dev (push) Successful in 7s
All checks were successful
Deploy Dev / Deploy para VM Dev (push) Successful in 7s
This commit is contained in:
parent
b2a0ff3a9c
commit
41dec8ff45
@ -61,12 +61,6 @@ jobs:
|
|||||||
PGHOST="${PGHOST//[$'\t\r\n ']}"
|
PGHOST="${PGHOST//[$'\t\r\n ']}"
|
||||||
PGPORT="${PGPORT//[$'\t\r\n ']}"
|
PGPORT="${PGPORT//[$'\t\r\n ']}"
|
||||||
export PGHOST PGPORT
|
export PGHOST PGPORT
|
||||||
echo "Bytes PGHOST: $(echo -n "$PGHOST" | wc -c)"
|
|
||||||
echo "Bytes PGPORT: $(echo -n "$PGPORT" | wc -c)"
|
|
||||||
echo "Testando TCP..."
|
|
||||||
timeout 5 bash -c "cat /dev/null > /dev/tcp/${PGHOST}/${PGPORT}" \
|
|
||||||
&& echo "TCP OK" \
|
|
||||||
|| { echo "TCP FALHOU — host/porta inacessível"; exit 1; }
|
|
||||||
echo "Aplicando migrations..."
|
echo "Aplicando migrations..."
|
||||||
for f in $(ls "$DEPLOY_PATH/database/migrations/"*.sql | sort); do
|
for f in $(ls "$DEPLOY_PATH/database/migrations/"*.sql | sort); do
|
||||||
echo "Aplicando: $(basename "$f")"
|
echo "Aplicando: $(basename "$f")"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user