mirror of
https://github.com/decompals/frogress.git
synced 2025-07-12 16:16:09 +00:00
* Basic docker-compose support * Use caddy instead of nginx, re-organise files * frogress.deco.mp -> progress.deco.mp * few tweaks + DOCKER.md * whitespace
17 lines
398 B
Bash
Executable File
17 lines
398 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DB_HOST=${DATABASE_HOST:-postgres}
|
|
DB_PORT=${DATABASE_PORT:-5432}
|
|
|
|
BE_HOST=${BACKEND_HOST:-frogress}
|
|
BE_PORT=${BACKEND_PORT:-8000}
|
|
|
|
until nc -z ${DB_HOST} ${DB_PORT} > /dev/null; do
|
|
echo "Waiting for database to become available on ${DB_HOST}:${DB_PORT}..."
|
|
sleep 1
|
|
done
|
|
|
|
poetry run python manage.py migrate
|
|
|
|
poetry run python manage.py runserver ${BE_HOST}:${BE_PORT}
|