fix
This commit is contained in:
@@ -19,7 +19,21 @@ test -n "${MIGRATIONS_DATABASE_URL:-}" || {
|
|||||||
echo "Missing MIGRATIONS_DATABASE_URL in .env" >&2
|
echo "Missing MIGRATIONS_DATABASE_URL in .env" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
test -n "${SMTP_USER:-}" || {
|
||||||
|
echo "Missing SMTP_USER in .env" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
test -n "${SMTP_PASSWORD:-}" || {
|
||||||
|
echo "Missing SMTP_PASSWORD in .env" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
goose -dir ./migrations postgres "$MIGRATIONS_DATABASE_URL" up
|
goose -dir ./migrations postgres "$MIGRATIONS_DATABASE_URL" up
|
||||||
|
|
||||||
docker compose up -d --build --force-recreate --remove-orphans evening_detective_server evening_detective_frontend
|
docker compose up -d --build --force-recreate --remove-orphans \
|
||||||
|
evening_detective_server evening_detective_frontend mailserver
|
||||||
|
|
||||||
|
if ! docker compose exec -T mailserver setup email list | grep -Fq "$SMTP_USER"; then
|
||||||
|
docker compose exec -T mailserver setup email add "$SMTP_USER" "$SMTP_PASSWORD"
|
||||||
|
fi
|
||||||
|
|
||||||
docker compose ps
|
docker compose ps
|
||||||
|
|||||||
Reference in New Issue
Block a user