15 lines
237 B
Bash
Executable File
15 lines
237 B
Bash
Executable File
#!/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
|