Merge branch 'develop' into stable
[akkoma] / docker-entrypoint.sh
1 #!/bin/ash
2
3 set -e
4
5 echo "-- Waiting for database..."
6 while ! pg_isready -U ${DB_USER:-pleroma} -d postgres://${DB_HOST:-db}:5432/${DB_NAME:-pleroma} -t 1; do
7 sleep 1s
8 done
9
10 echo "-- Running migrations..."
11 mix ecto.migrate
12
13 echo "-- Starting!"
14 mix phx.server