5dfd5b1814
Build & Deploy / Build & Push Docker Image (push) Failing after 34s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / Type Check (all packages) (push) Successful in 57s
Test / API Unit Tests (push) Failing after 52s
Test / Homepage Unit Tests (push) Successful in 46s
Test / Storefront Unit Tests (push) Successful in 44s
Test / Admin Unit Tests (push) Successful in 41s
Test / Dashboard Unit Tests (push) Successful in 43s
Test / API Integration Tests (push) Has been cancelled
22 lines
820 B
Bash
Executable File
22 lines
820 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
source "${ROOT_DIR}/scripts/docker-prod-common.sh"
|
|
|
|
ensure_env_file
|
|
|
|
pgmanage_user="$(read_env_value PGMANAGE_DEFAULT_USERNAME)"
|
|
pgmanage_password="$(read_env_value PGMANAGE_DEFAULT_PASSWORD)"
|
|
if [[ -z "${pgmanage_user}" || -z "${pgmanage_password}" || "${pgmanage_user}" == "admin" || "${pgmanage_password}" == replace-with-* ]]; then
|
|
echo "Set strong PGMANAGE_DEFAULT_USERNAME and PGMANAGE_DEFAULT_PASSWORD before starting pgManage." >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "Starting pgManage on the private Docker network only."
|
|
echo "Access it with an SSH tunnel or VPN path to the Docker host, not through public Traefik."
|
|
prod_compose --profile private-tools up --build -d pgmanage
|
|
|
|
echo "pgManage is starting as a private tool."
|