Skip to content

Commit a054653

Browse files
authored
Update wait-for-postgres.sh
1 parent ff27eee commit a054653

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

wait-for-postgres.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ until PGPASSWORD=$DB_PASSWORD psql -h "$host" -U "postgres" -c '\q'; do
1414
done
1515

1616
>&2 echo "Postgres is up - executing command"
17-
# run migrations
18-
migrate -path /build/schema -database $psql_url up
17+
docker run -v /build/schema:/migrations --network host migrate/migrate -path=/build/schema -database $psql_url up 2
1918

2019
chmod +x go-notik
2120
# run go service
22-
exec $cmd
21+
exec $cmd

0 commit comments

Comments
 (0)