forked from AkkomaGang/akkoma
sliver
559feac56e
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
14 lines
321 B
Bash
Executable file
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
|