akkoma/docker-entrypoint.sh
sliver 559feac56e 最新develop取得 (#5) (#6)
Co-authored-by: Oneric <oneric@oneric.stub>
Co-authored-by: Floatingghost <hannah@coffee-and-dreams.uk>
Co-authored-by: floatingghost <hannah@coffee-and-dreams.uk>
Co-authored-by: cevado <cevado@tutanota.com>
Co-authored-by: TudbuT <tudbut@tudbut.de>
Co-authored-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Reviewed-on: #5
Reviewed-on: #6
2024-12-22 05:52:32 +00:00

14 lines
321 B
Bash
Executable file

#!/bin/ash
set -e
echo "-- Waiting for database..."
while ! pg_isready -U ${DB_USER:-pleroma} -d postgres://${DB_HOST:-db}:5432/${DB_NAME:-pleroma} -t 1; do
sleep 1s
done
echo "-- Running migrations..."
mix ecto.migrate
echo "-- Starting!"
elixir --erl "+sbwt none +sbwtdcpu none +sbwtdio none" -S mix phx.server