- scripts/peppa-release.sh: ~/peppa/{repo.git,releases/<sha>,current,shared/.env};
install → next build → checked DB backup → migrate → switch current → kickstart →
health (/api/health commit + fresh heartbeats) → rollback; --queue, --check, --no-restart
- runner/platform-release.ts: deployProd for the platform project (PEPPA_PLATFORM_KEY=PEP)
queues a request for launchd quest.telecom.peppa.release; offer after green main
- CLI: peppa db backup [file], peppa release report; backupDb verifies the copy
- install-launchd.sh: wait for unload after bootout (no "Bootstrap failed: 5"),
release agent (QueueDirectories), PEPPA_ROOT in agents
- bin wrappers: logical root so hooks/credential.helper point at ~/peppa/current
- mock-launchctl, mock-pnpm; e2e platform-release.test.ts; OpenSpec pep-18-peppa-prod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
1.0 KiB
Bash
Executable File
17 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# mock-pnpm — stands in for pnpm in peppa-release.sh tests (first on PATH as `pnpm`): the two
|
|
# calls the release makes, in the release directory. `install --frozen-lockfile` creates
|
|
# node_modules, `--filter @peppa/web build` writes apps/web/.next/BUILD_ID. Calls go to
|
|
# $MOCK_PNPM_LOG; MOCK_PNPM_FAIL=install|build makes that step fail like the real one.
|
|
set -uo pipefail
|
|
[[ -n "${MOCK_PNPM_LOG:-}" ]] && echo "pnpm $* (in $PWD)" >> "$MOCK_PNPM_LOG"
|
|
case "$*" in
|
|
"install --frozen-lockfile")
|
|
[[ "${MOCK_PNPM_FAIL:-}" == install ]] && { echo " ERR_PNPM_OUTDATED_LOCKFILE Cannot install with \"frozen-lockfile\"" >&2; exit 1; }
|
|
mkdir -p node_modules; echo "Done in 0.1s" ;;
|
|
"--filter @peppa/web build")
|
|
[[ "${MOCK_PNPM_FAIL:-}" == build ]] && { echo "Failed to compile." >&2; echo " ELIFECYCLE Command failed with exit code 1." >&2; exit 1; }
|
|
mkdir -p apps/web/.next; git rev-parse HEAD > apps/web/.next/BUILD_ID; echo "✓ Compiled successfully" ;;
|
|
*) echo "mock-pnpm: unsupported: $*" >&2; exit 64 ;;
|
|
esac
|