#!/bin/bash set -e echo "Waiting for Postgres..." sleep 9 # Performing migrations echo "Running migrations..." migrate -database "$DB_DSN" -path ./migrations up # Launch the application echo "Starting the application..." exec ./main