mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
12 lines
282 B
Bash
Executable File
12 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "🔍 Waiting for PostgreSQL at $DB_HOST:$DB_PORT..."
|
|
until nc -z "$DB_HOST" "$DB_PORT"; do
|
|
echo "⏳ PostgreSQL is not ready yet..."
|
|
sleep 2
|
|
done
|
|
echo "✅ PostgreSQL is ready!"
|
|
|
|
echo "🏁 Starting LTI API (with Air hot reload)..."
|
|
exec air -c .air.toml |