#!/usr/bin/env bash # Boot the picloud all-in-one for the CMS PoC against the clean picloud_cms DB, # relaying email through the local Mailpit (docker) on :1025. # Postgres + Mailpit are expected up (docker compose up -d postgres; docker run ... mailpit). set -euo pipefail cd "$(dirname "$0")/../.." # repo root export DATABASE_URL="postgres://picloud:picloud@127.0.0.1:15432/picloud_cms" export PICLOUD_BIND="0.0.0.0:8081" export PICLOUD_DEV_MODE=true export PICLOUD_DEV_INSECURE_KEY="i-understand-this-is-insecure" export PICLOUD_ADMIN_USERNAME=admin export PICLOUD_ADMIN_PASSWORD=admin export PICLOUD_PUBLIC_BASE_URL="http://localhost:8081" # --- SMTP relay -> Mailpit (all three of HOST/USER/PASSWORD required; TLS=none for Mailpit) --- export PICLOUD_SMTP_HOST=127.0.0.1 export PICLOUD_SMTP_PORT=1025 export PICLOUD_SMTP_USER=cms export PICLOUD_SMTP_PASSWORD=cms export PICLOUD_SMTP_TLS=none export RUST_LOG="${RUST_LOG:-info,picloud=info,manager_core=info}" exec ./target/debug/picloud