#!/usr/bin/env bash # Runs the demo app with an optional Spring profile, so you can watch each scenario for real # instead of only reading about it. See the README's "Try it yourself" table for what each does. # # ./scripts/run.sh quickstart — Flyway only, clean startup # ./scripts/run.sh both-naive both tools enabled, no baseline — fails to start on purpose # ./scripts/run.sh both-fixed both tools enabled, baseline-on-migrate + baseline-version=0 # # Once it's up: curl http://localhost:8080/diag/migrations set -euo pipefail cd "$(dirname "$0")/.." PROFILE="${1:-}" if [ -n "$PROFILE" ]; then mvn -q spring-boot:run -Dspring-boot.run.profiles="$PROFILE" else mvn -q spring-boot:run fi